You need to tell the compiler it has been declared:
declare var bootbox: any;
If you have better type information you can add that too, in place of any
.
More Related Contents:
- How do you explicitly set a new property on `window` in TypeScript?
- Typescript derive union type from tuple/array values
- How do I convert a string to enum in TypeScript?
- Typescript: deep keyof of a nested object
- Typescript ReferenceError: exports is not defined
- How do I prevent the error “Index signature of object type implicitly has an ‘any’ type” when compiling typescript with noImplicitAny flag enabled?
- Does Typescript support the ?. operator? (And, what’s it called?)
- error TS2339: Property ‘x’ does not exist on type ‘Y’
- Get properties of a class
- typescript template literal as interface key
- TypeScript error TS1005: ‘;’ expected (II)
- How to use namespaces with import in TypeScript
- Difference between type[] and [type] in typescript
- How can I create an object based on an interface file definition in TypeScript?
- How can I define an array of objects?
- How to require a specific string in TypeScript interface
- Typescript has unions, so are enums redundant?
- Rules for the use of angle brackets in TypeScript
- How to use select/option/NgFor on an array of objects in Angular2 [duplicate]
- Specify return type in TypeScript arrow function
- How to add custom “typings” in typescript 2.0 / 3.0
- TypeScript interface that allows other properties
- Type intersections using any
- Vscode TS language features unavailable when tests/** are not included in the tsconfig
- detect change of nested property for component input
- Using enums as types allows values that don’t exist in the enum
- Typescript never type condition
- Is there a type in TypeScript for anything except functions?
- Typescript string dot notation of nested object
- TypeScript: augmenting built-in types