-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: generate typings * fix: do not change type of init * chore: remove source map from repo * chore: remove not needed type cast * fix: rebuild package-lock.json with npm 6 * chore: reset CHANGELOG.md to master
- Loading branch information
1 parent
219b49c
commit 1c9a69b
Showing
13 changed files
with
177 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import createInitializer from './initialize' | ||
import createAPI from './api' | ||
import locations from './locations' | ||
import { KnownSDK } from './types' | ||
|
||
// `export = {}` to allow direct CommonJS `require()` instead of `require().default` | ||
export = { | ||
init: createInitializer(window, createAPI), | ||
locations, | ||
} | ||
export * from './types' | ||
export { default as locations } from './locations' | ||
|
||
type Init = <T extends KnownSDK = KnownSDK>( | ||
initCallback: (sdk: T) => any, | ||
options?: { supressIframeWarning?: boolean } | ||
) => void | ||
|
||
export const init = createInitializer(window, createAPI) as Init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.