Files
authentik/web/packages/lex/index.d.ts
Teffen Ellis fadc14eddc web: Fix stale clipboard tokens, untranslated labels (#23063)
* web: Fix stale clipboard tokens, untranslated labels.

* Fix tooltip.

* Fix type error.

* Update types.

* Fix types. Clean up composite.

* Fix label names.

* Fix broken HTML.

* Fix labels, formatters.

* Clean up properties, lifecyle.
2026-06-16 18:58:23 +00:00

24 lines
551 B
TypeScript
Vendored

export type Token = unknown;
export type LexerAction = (
this: Lexer,
match: string,
...captures: string[]
) => Token | Token[] | null | void;
export type DefunctHandler = (this: Lexer, chr: string) => Token | Token[] | null | void;
export class Lexer {
state: number;
index: number;
input: string;
reject: boolean;
constructor(defunct?: DefunctHandler);
addRule(pattern: RegExp, action: LexerAction, start?: number[]): this;
setInput(input: string): this;
lex(): Token | null;
}
export default Lexer;