@types/opencc-js 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- opencc-js/LICENSE +0 -0
- opencc-js/README.md +2 -8
- opencc-js/index.d.ts +1 -6
- opencc-js/package.json +5 -5
opencc-js/LICENSE
CHANGED
|
File without changes
|
opencc-js/README.md
CHANGED
|
@@ -8,12 +8,7 @@ This package contains type definitions for opencc-js (https://github.com/nk2028/
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/opencc-js.
|
|
9
9
|
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/opencc-js/index.d.ts)
|
|
10
10
|
````ts
|
|
11
|
-
|
|
12
|
-
// Project: https://github.com/nk2028/opencc-js
|
|
13
|
-
// Definitions by: Pig Fang <https://github.com/g-plane>
|
|
14
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
15
|
-
|
|
16
|
-
export type Locale = 'cn' | 'tw' | 'twp' | 'hk' | 'jp' | 't';
|
|
11
|
+
export type Locale = "cn" | "tw" | "twp" | "hk" | "jp" | "t";
|
|
17
12
|
|
|
18
13
|
export interface ConverterOptions {
|
|
19
14
|
from?: Locale;
|
|
@@ -41,9 +36,8 @@ export interface HTMLConvertHandler {
|
|
|
41
36
|
````
|
|
42
37
|
|
|
43
38
|
### Additional Details
|
|
44
|
-
* Last updated: Wed,
|
|
39
|
+
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT
|
|
45
40
|
* Dependencies: none
|
|
46
|
-
* Global values: none
|
|
47
41
|
|
|
48
42
|
# Credits
|
|
49
43
|
These definitions were written by [Pig Fang](https://github.com/g-plane).
|
opencc-js/index.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// Project: https://github.com/nk2028/opencc-js
|
|
3
|
-
// Definitions by: Pig Fang <https://github.com/g-plane>
|
|
4
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
-
|
|
6
|
-
export type Locale = 'cn' | 'tw' | 'twp' | 'hk' | 'jp' | 't';
|
|
1
|
+
export type Locale = "cn" | "tw" | "twp" | "hk" | "jp" | "t";
|
|
7
2
|
|
|
8
3
|
export interface ConverterOptions {
|
|
9
4
|
from?: Locale;
|
opencc-js/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/opencc-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "TypeScript definitions for opencc-js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/opencc-js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": "Pig Fang",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "g-plane",
|
|
11
|
+
"url": "https://github.com/g-plane"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"main": "",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {},
|
|
22
22
|
"dependencies": {},
|
|
23
|
-
"typesPublisherContentHash": "
|
|
24
|
-
"typeScriptVersion": "
|
|
23
|
+
"typesPublisherContentHash": "fca4a8d2b880e84403f79eb6b26db2d3fddce64e31306dc9293782ce77aee2e4",
|
|
24
|
+
"typeScriptVersion": "4.5"
|
|
25
25
|
}
|