-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.d.ts
32 lines (28 loc) · 897 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// index.d.ts
// play-install-referrer-react-native
//
// Created by Uglješa Erceg (@uerceg) on 24th April 2020.
// Copyright (c) 2021-2022 uerceg. All rights reserved.
//
declare module 'react-native-play-install-referrer' {
export class PlayInstallReferrerError extends Error {
responseCode: string
}
export type PlayInstallReferrerInfo = {
googlePlayInstant: boolean
installBeginTimestampSeconds: string
installBeginTimestampServerSeconds: string
installReferrer: string
installVersion: string
referrerClickTimestampSeconds: string
referrerClickTimestampServerSeconds: string
}
export type PlayInstallReferrerCallback = (
info: PlayInstallReferrerInfo | null,
error: PlayInstallReferrerError | null,
) => void
export const PlayInstallReferrer: {
getInstallReferrerInfo: (callback: PlayInstallReferrerCallback) => void
}
}