mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
282 B
TypeScript
14 lines
282 B
TypeScript
import braces = require("braces");
|
|
|
|
const transform: braces.Transform = (str) => `foo_${str}`;
|
|
const bracesOpts: braces.Options = {
|
|
transform,
|
|
expand: true
|
|
};
|
|
|
|
// $ExpectType string[]
|
|
braces.expand('a/{x,y,z}/b');
|
|
|
|
// $ExpectType string[]
|
|
braces('a/{x,y,z}/b', bracesOpts);
|