-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unused as of 480aaa6. Resolves #1396. TODO can we make some stuff generic now? if not, update comments that relate to it (note that to see the correct bundle sizes you need to `build` first)
- Loading branch information
1 parent
c189ce4
commit 288923f
Showing
11 changed files
with
8 additions
and
21 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 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,22 +1,22 @@ | ||
import BaseRest from './baserest'; | ||
import ClientOptions from '../../types/ClientOptions'; | ||
import { allCommonModules } from './modulesmap'; | ||
import Platform from 'common/platform'; | ||
import { IUntypedCryptoStatic } from 'common/types/ICryptoStatic'; | ||
|
||
export class DefaultRest extends BaseRest { | ||
constructor(options: ClientOptions | string) { | ||
super(options, { ...allCommonModules, Crypto: DefaultRest.Crypto ?? undefined }); | ||
} | ||
|
||
private static _Crypto: typeof Platform.Crypto = null; | ||
private static _Crypto: IUntypedCryptoStatic | null = null; | ||
static get Crypto() { | ||
if (this._Crypto === null) { | ||
throw new Error('TODO'); | ||
} | ||
|
||
return this._Crypto; | ||
} | ||
static set Crypto(newValue: typeof Platform.Crypto) { | ||
static set Crypto(newValue: IUntypedCryptoStatic | null) { | ||
this._Crypto = newValue; | ||
} | ||
} |
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 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 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 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 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 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 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 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 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