How to use the common-tags.oneLineInlineLists function in common-tags

To help you get started, we’ve selected a few common-tags examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / common-tags / common-tags-tests.ts View on Github external
commonTags.oneLineCommaListsOr`
  I like ${['apples', 'bananas', 'watermelons']}
  They're good!
`;

commonTags.oneLineCommaListsAnd`
  I like ${['apples', 'bananas', 'watermelons']}
  They're good!
`;

commonTags.inlineLists`
  I like ${['apples', 'bananas', 'watermelons']}
  They're good!
`;

commonTags.oneLineInlineLists`
  I like ${['apples', 'bananas', 'watermelons']}
  They're good!
`;

let verb = 'notice';

commonTags.stripIndent`
  This is a multi-line string.
  You'll ${verb} that it is indented.
  We don't want to output this indentation.
    But we do want to keep this line indented.
`;

commonTags.stripIndents`
  This is a multi-line string.
  You'll ${verb} that it is indented.