Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Oct 25, 2019
1 parent a78ff7b commit aa228db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/store/addon/-private/identifiers/utils/uuid-v4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const CRYPTO = (() => {
if (isFastBoot) {
return {
getRandomValues(buffer: Uint8Array) {
return FastBoot.require('crypto').randomFillSync(buffer);
return (FastBoot as FastBoot).require('crypto').randomFillSync(buffer);
},
};
} else if (hasWindow && typeof window.crypto !== 'undefined') {
Expand Down
4 changes: 4 additions & 0 deletions packages/store/types/fastboot/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interface FastBoot {
require(moduleName: string): any;
}
const FastBoot: undefined | FastBoot;

0 comments on commit aa228db

Please sign in to comment.