@teip/utils

0.2.0 • Public • Published

Teip utils

This is just a utility package that exports some useful functions that are relevant for a lot of packages.

declare function definitionToVariableName(definition: DefinitionNode): string;

declare function definitionToTypeName(definition: DefinitionNode): string;

declare var importRegex: RegExp;

declare function isImport(str: string): boolean;

type ImportInfo = {
  path: string,
  names: string[],
};

declare function importToImportInfo(line: string): ImportInfo;

Readme

Keywords

none

Package Sidebar

Install

npm i @teip/utils

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

6.22 kB

Total Files

6

Last publish

Collaborators

  • csnweb
  • hendrikniemann