Skip to content

Instantly share code, notes, and snippets.

@luisnaranjo733
Created September 29, 2018 00:52
Show Gist options
  • Save luisnaranjo733/a70497c6066888f589afa96e7050fe13 to your computer and use it in GitHub Desktop.
Save luisnaranjo733/a70497c6066888f589afa96e7050fe13 to your computer and use it in GitHub Desktop.
Example typings for Adjust RN SDK
declare module "react-native-adjust" {
type Environment = "sandbox" | "production";
export class AdjustConfig {
constructor(appToken: string, environment: Environment) {}
static get EnvironmentSandbox(): Environment {
return "sandbox";
}
static get EnvironmentProduction(): Environment {
return "production";
}
}
export const Adjust = {
create: (adjustConfig: any): void => {},
componentWillUnmount: (): void => {}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment