@yozora/tokenizer-definition 2.0.5 → 2.1.0
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.
- package/lib/types/index.d.ts +2 -2
- package/package.json +5 -5
- package/src/types.ts +2 -2
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INodePoint } from '@yozora/character';
|
|
2
|
-
import {
|
|
2
|
+
import { IPartialBlockToken, IPhrasingContentLine, ITokenizer, IBaseBlockTokenizerProps, IMatchBlockHookCreator, IParseBlockHookCreator, BaseBlockTokenizer, IBlockTokenizer } from '@yozora/core-tokenizer';
|
|
3
3
|
import { DefinitionType, Definition } from '@yozora/ast';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -119,7 +119,7 @@ declare function eatAndCollectLinkTitle(nodePoints: ReadonlyArray<INodePoint>, s
|
|
|
119
119
|
type T = DefinitionType;
|
|
120
120
|
type INode = Definition;
|
|
121
121
|
declare const uniqueName = "@yozora/tokenizer-definition";
|
|
122
|
-
interface IToken extends
|
|
122
|
+
interface IToken extends IPartialBlockToken<T> {
|
|
123
123
|
/**
|
|
124
124
|
*
|
|
125
125
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yozora/tokenizer-definition",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "guanghechen",
|
|
6
6
|
"url": "https://github.com/guanghechen/"
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"test": "cross-env TS_NODE_FILES=true NODE_OPTIONS=--experimental-vm-modules jest --config ../../jest.config.mjs --rootDir ."
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@yozora/ast": "^2.0
|
|
43
|
-
"@yozora/character": "^2.0
|
|
44
|
-
"@yozora/core-tokenizer": "^2.0
|
|
42
|
+
"@yozora/ast": "^2.1.0",
|
|
43
|
+
"@yozora/character": "^2.1.0",
|
|
44
|
+
"@yozora/core-tokenizer": "^2.1.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "387a68e8f9154944e2a6a7009a808d076d0659c6"
|
|
47
47
|
}
|
package/src/types.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Definition, DefinitionType } from '@yozora/ast'
|
|
2
2
|
import type {
|
|
3
3
|
IBaseBlockTokenizerProps,
|
|
4
|
-
|
|
4
|
+
IPartialBlockToken,
|
|
5
5
|
IPhrasingContentLine,
|
|
6
6
|
ITokenizer,
|
|
7
7
|
} from '@yozora/core-tokenizer'
|
|
@@ -13,7 +13,7 @@ export type T = DefinitionType
|
|
|
13
13
|
export type INode = Definition
|
|
14
14
|
export const uniqueName = '@yozora/tokenizer-definition'
|
|
15
15
|
|
|
16
|
-
export interface IToken extends
|
|
16
|
+
export interface IToken extends IPartialBlockToken<T> {
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
*/
|