mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
492 B
TypeScript
20 lines
492 B
TypeScript
import fastChunkString = require("fast-chunk-string");
|
|
|
|
// $ExpectType string[]
|
|
fastChunkString("AABBCC", { size: 2 });
|
|
|
|
// $ExpectType string[]
|
|
fastChunkString("😀😃😄😁", { size: 2, unicodeAware: false });
|
|
|
|
// $ExpectType string[]
|
|
fastChunkString("😀😃😄😁", { size: 2, unicodeAware: true });
|
|
|
|
// $ExpectError
|
|
fastChunkString("missing options");
|
|
|
|
// $ExpectError
|
|
fastChunkString("missing size", { unicodeAware: false });
|
|
|
|
// $ExpectError
|
|
fastChunkString(null, { size: 2 });
|