-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from zh-lx/feat-add-dict
feat: 优化自定义 dict 的逻辑
- Loading branch information
Showing
3 changed files
with
116 additions
and
10 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,6 +1,10 @@ | ||
type DICT = { | ||
[key: string]: string | [string] | [string, number] | [string, number, string]; | ||
}; | ||
export declare function addDict(dict: DICT | {}, name?: string): void; | ||
export declare function removeDict(dictName: string): void; | ||
type DictOptions = { | ||
name?: string; | ||
dict1?: "add" | "replace" | "ignore"; | ||
}; | ||
export declare function addDict(dict: DICT | {}, options?: string | DictOptions): void; | ||
export declare function removeDict(dictName?: string): void; | ||
export {}; |