mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
The base option allows strings containing a CSS size unit like `5em`
or `12px`. See: b01cfdd1b5/README.md (use)
10 lines
395 B
TypeScript
10 lines
395 B
TypeScript
import ModularScale, { ratios } from 'modular-scale';
|
|
|
|
const ms = ModularScale({ ratio: ratios.doubleOctave }); // $ExpectType modularScale
|
|
ms(1); // $ExpectType number
|
|
ms.steps(1); // $ExpectType number[]
|
|
|
|
const ms2 = ModularScale({ratio: ratios.augFourth, base: 16 }); // $ExpectType modularScale
|
|
|
|
const ms3 = ModularScale({ratio: ratios.augFourth, base: "16px"}); // $ExpectType modularScale
|