-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lint scripts to run ESLint on TS files
- Update ESLint rules - Allow JSON imports in TS
- Loading branch information
Showing
11 changed files
with
29 additions
and
22 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
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,14 +1,16 @@ | ||
declare module 'react-native-default-preference' { | ||
function get(key: String): Promise<String>; | ||
function set(key: String, value: String): Promise<Void>; | ||
function clear(key: String): Promise<Void>; | ||
function getMultiple(keys: Array<String>): Promise<Array<String>>; | ||
function setMultiple(data: Object): Promise<Void>; | ||
function clearMultiple(keys: Array<String>): Promise<Void>; | ||
function getAll(): Promise<Object>; | ||
function get(key: string): Promise<string>; | ||
function set(key: string, value: string): Promise<Void>; | ||
function clear(key: string): Promise<Void>; | ||
function getMultiple(keys: string[]): Promise<string[]>; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function setMultiple(data: Record<string, any>): Promise<Void>; | ||
function clearMultiple(keys: string[]): Promise<Void>; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function getAll(): Promise<Record<string, any>>; | ||
function clearAll(): Promise<Void>; | ||
|
||
/** Gets and sets the current preferences file name (android) or user default suite name (ios) **/ | ||
function getName(): Promise<String>; | ||
function setName(name: String): Promise<Void>; | ||
function getName(): Promise<string>; | ||
function setName(name: string): Promise<Void>; | ||
} |
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