Aller au contenu

sdk/lib/parsers

Ce contenu n’est pas encore disponible dans votre langue.

function fixDiff<T>(items: T): DiffReturnType<T>

Defined in: studiocms/packages/studiocms/src/sdk/lib/parsers.ts:24

T extends | diffItem | diffItem[]

T

DiffReturnType<T>


function parseIdNumberArray(ids: unknown): number[]

Defined in: studiocms/packages/studiocms/src/sdk/lib/parsers.ts:10

Parses an unknown input and casts it to an array of numbers.

unknown

The input to be parsed, expected to be an array of numbers.

number[]

An array of numbers.


function parseIdStringArray(ids: unknown): string[]

Defined in: studiocms/packages/studiocms/src/sdk/lib/parsers.ts:20

Parses the given input as an array of strings.

unknown

The input to be parsed, expected to be an array of unknown type.

string[]

An array of strings parsed from the input.