Skip to content

Commit

Permalink
Update token data helper
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Oct 13, 2023
1 parent f3aeafc commit ed8de56
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/css-tokenizer/test/helpers/token-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@ import { type TokenType } from '../../src/common/enums/token-types';
* @param start Token start offset
* @param end Token end offset
* @param props Other token properties (if any)
* @todo Create a more specific type for `props` parameter, if needed & possible
*/
export type TokenData = [type: TokenType, start: number, end: number, props?: object | undefined];

/**
* Error data
*
* @param message Error message
* @param start Error start offset
* @param end Error end offset
*/
export type ErrorData = [message: string, start: number, end: number];

0 comments on commit ed8de56

Please sign in to comment.