mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
334 B
TypeScript
19 lines
334 B
TypeScript
import stringifyAttributes = require('stringify-attributes');
|
|
|
|
// $ExpectType string
|
|
stringifyAttributes({
|
|
unicorn: '🦄',
|
|
});
|
|
// $ExpectType string
|
|
stringifyAttributes({
|
|
rainbow: true,
|
|
});
|
|
// $ExpectType string
|
|
stringifyAttributes({
|
|
number: 1,
|
|
});
|
|
// $ExpectType string
|
|
stringifyAttributes({
|
|
multiple: ['a', 1],
|
|
});
|