Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
21 lines
690 B
Plaintext
21 lines
690 B
Plaintext
import { TypeBoxError } from '../error/index.mjs';
|
|
export declare class TemplateLiteralParserError extends TypeBoxError {
|
|
}
|
|
export type Expression = ExpressionAnd | ExpressionOr | ExpressionConst;
|
|
export type ExpressionConst = {
|
|
type: 'const';
|
|
const: string;
|
|
};
|
|
export type ExpressionAnd = {
|
|
type: 'and';
|
|
expr: Expression[];
|
|
};
|
|
export type ExpressionOr = {
|
|
type: 'or';
|
|
expr: Expression[];
|
|
};
|
|
/** Parses a pattern and returns an expression tree */
|
|
export declare function TemplateLiteralParse(pattern: string): Expression;
|
|
/** Parses a pattern and strips forward and trailing ^ and $ */
|
|
export declare function TemplateLiteralParseExact(pattern: string): Expression;
|