@markuplint/types 4.0.0-rc.0 → 4.0.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.
@@ -1,2 +1,2 @@
1
1
  import type { CustomSyntaxCheck, UnmatchedResult } from './types.js';
2
- export declare function checkMultiTypes(value: string, checks: readonly CustomSyntaxCheck[]): UnmatchedResult | import("./types.js").MatchedResult;
2
+ export declare function checkMultiTypes(value: string, checks: readonly CustomSyntaxCheck[]): import("./types.js").MatchedResult | UnmatchedResult;
@@ -2,7 +2,7 @@ import type { FormattedPrimitiveTypeCheck, MatchedResult, UnmatchedResult, Unmat
2
2
  export declare function matches(checker: FormattedPrimitiveTypeCheck, options?: UnmatchedResultOptions & {
3
3
  readonly ref?: string;
4
4
  readonly reason?: UnmatchedResultReason;
5
- }): (value: string) => UnmatchedResult | MatchedResult;
5
+ }): (value: string) => MatchedResult | UnmatchedResult;
6
6
  export declare function matched(): MatchedResult;
7
7
  export declare function unmatched(value: string, reason?: UnmatchedResultReason, options?: UnmatchedResultOptions & {
8
8
  readonly ref?: string;
@@ -24,7 +24,7 @@ export declare class TokenCollection extends Array<Token> {
24
24
  expects?: Expect[];
25
25
  ref?: string;
26
26
  cache?: boolean;
27
- }): UnmatchedResult | import("../types.js").MatchedResult;
27
+ }): import("../types.js").MatchedResult | UnmatchedResult;
28
28
  chunk(split: number): TokenCollection[];
29
29
  compareTokens(callback: (prev: Readonly<Token>, current: Readonly<Token>) => Readonly<Token> | null | void): Readonly<Token> | null | undefined;
30
30
  divide(position: number): readonly [TokenCollection, TokenCollection];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/types",
3
- "version": "4.0.0-rc.0",
3
+ "version": "4.0.0",
4
4
  "description": "Type declaration and value checker",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -39,5 +39,5 @@
39
39
  "type-fest": "^4.10.2",
40
40
  "whatwg-mimetype": "^4.0.0"
41
41
  },
42
- "gitHead": "3fdeb45cb69ed52b3a215a7520cea1181601443f"
42
+ "gitHead": "be4aabe189dc53a717b2fbd58583a03017646251"
43
43
  }