sdk/lib/parsers
Functions
'Read the “', Functions, '” section'parseIdNumberArray()
'Read the “', parseIdNumberArray(), '” section'function parseIdNumberArray(ids: unknown): number[]
Defined in: studiocms/packages/studiocms/src/sdk/lib/parsers.ts:7
Parses an unknown input and casts it to an array of numbers.
Parameters
'Read the “', Parameters, '” section'unknown
The input to be parsed, expected to be an array of numbers.
number
[]
An array of numbers.
parseIdStringArray()
'Read the “', parseIdStringArray(), '” section'function parseIdStringArray(ids: unknown): string[]
Defined in: studiocms/packages/studiocms/src/sdk/lib/parsers.ts:17
Parses the given input as an array of strings.
Parameters
'Read the “', Parameters, '” section'unknown
The input to be parsed, expected to be an array of unknown type.
string
[]
An array of strings parsed from the input.