T
T
Timokins2020-11-18 14:38:50
typescript
Timokins, 2020-11-18 14:38:50

How not to include the library and not get an error?

Probably a dumb question, but...
It is necessary to compile ts without using external library imports.
Or use, but without the import line in the compiled script.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-11-18
@Aetae

import type LibnameType from 'libname';

declare global {
  const libname: typeof LibnameType;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question