Files
DefinitelyTyped/types/deindent/deindent-tests.ts
2019-07-01 11:17:31 -07:00

32 lines
384 B
TypeScript

import deindent = require('deindent');
// as a string function
deindent(`
this
is
the ${'end'}
my only
friend
the end
`);
// as a template tag
deindent`
this
is
the ${'end'}
my only
friend
the end
`;
// as a higher-order template tag
deindent(String.raw)`
this
is
the ${'end'}
my only
friend
the end
`;