castAsInteger() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Utility function for custom functions. Cast resolved option values with numerical string representations of integers to their Number equivalents. Any other values are untouched.


export declare function castAsInteger(options: RuntimeOptions, ...names: string[]): void;


Parameter Type Description
options RuntimeOptions Options object, which may be modified.
names string[] Names of options that should have integer values.