UNPKG

400 BTypeScriptView Raw
1/**
2 * Parse a sample rate from a given value.
3 * This will either return a boolean or number sample rate, if the sample rate is valid (between 0 and 1).
4 * If a string is passed, we try to convert it to a number.
5 *
6 * Any invalid sample rate will return `undefined`.
7 */
8export declare function parseSampleRate(sampleRate: unknown): number | undefined;
9//# sourceMappingURL=parseSampleRate.d.ts.map
\No newline at end of file