Interface: VirtualSheet

twind/sheets.VirtualSheet

A sheet that collects styles into an array.

Hierarchy

Properties

init

init: SheetInit

Register a function that should be called to create a new state.

Overrides: Storage.init

Defined in: src/sheets/index.ts:66


insert

insert: (rule: string, index: number) => void

Type declaration:

▸ (rule: string, index: number): void

Parameters:

NameType
rulestring
indexnumber

Returns: void

Defined in: src/types/twind.ts:64

Inherited from: Sheet.insert

Defined in: src/types/twind.ts:64


reset

reset: (snapshot?: unknown[]) => unknown[]

Creates a snapshot of the current state, invokes all init callbacks to create a fresh state and returns the snaphot.

Type declaration:

▸ (snapshot?: unknown[]): unknown[]

Parameters:

NameType
snapshot?unknown[]

Returns: unknown[]

Defined in: src/sheets/index.ts:41

Inherited from: Storage.reset

Defined in: src/sheets/index.ts:41


target

Readonly target: string[]

Inherited from: Sheet.target

Defined in: src/types/twind.ts:62