@unified-latex/unified-latex-util-match
Advanced tools
Comparing version 1.7.1 to 1.8.0
@@ -57,3 +57,3 @@ import * as Ast from '@unified-latex/unified-latex-types'; | ||
blankArgument(node: any): boolean; | ||
math(node: any): node is Ast.InlineMath | Ast.DisplayMath; | ||
math(node: any): node is Ast.DisplayMath | Ast.InlineMath; | ||
createMacroMatcher: typeof createMacroMatcher; | ||
@@ -63,3 +63,3 @@ createEnvironmentMatcher: typeof createEnvironmentMatcher; | ||
export declare const math: (node: any) => node is Ast.InlineMath | Ast.DisplayMath; | ||
export declare const math: (node: any) => node is Ast.DisplayMath | Ast.InlineMath; | ||
@@ -66,0 +66,0 @@ export declare const parbreak: (node: any) => node is Ast.Parbreak; |
{ | ||
"name": "@unified-latex/unified-latex-util-match", | ||
"version": "1.7.1", | ||
"version": "1.8.0", | ||
"description": "Match nodes in a unified-latex AST", | ||
@@ -8,4 +8,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@unified-latex/unified-latex-types": "^1.7.1", | ||
"@unified-latex/unified-latex-util-print-raw": "^1.7.1" | ||
"@unified-latex/unified-latex-types": "^1.8.0", | ||
"@unified-latex/unified-latex-util-print-raw": "^1.8.0" | ||
}, | ||
@@ -12,0 +12,0 @@ "repository": { |
@@ -26,4 +26,4 @@ <!-- DO NOT MODIFY --> | ||
| Name | Type | Description | | ||
| :------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------- | | ||
| `match` | `{ macro(node: any, macroName?: string): node is Ast.Macro; anyMacro(node: any): node is Ast.Macro; environment(node: any, envName?: string): node is Ast.Environment; anyEnvironment(node: any): node is Ast.Environment; ... 11 more ...; createEnvironmentMatcher: (macros: string[] \| Record<...>) => Ast.TypeGuard<...>; }` | Functions to match different types of nodes. | | ||
| Name | Type | Description | | ||
| :------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------- | | ||
| `match` | `{ macro(node: any, macroName?: string): node is Ast.Macro; anyMacro(node: any): node is Ast.Macro; environment(node: any, envName?: string): node is Ast.Environment; ... 12 more ...; createEnvironmentMatcher: (macros: string[] \| Record<string, unknown>) => Ast.TypeGuard<Ast.Environment>; }` | Functions to match different types of nodes. | |
33362