How to import KnockOut 4 in TypeScript?
问题 This seems simple because the same code works well in simple JS file and it also has autocompletion for the ko variable's members. I have the following TypeScript code below: // both of the following import lines result in: `ko` undefined // import { ko } from "@tko/build.knockout"; import { ko } from "../node_modules/@tko/build.knockout/dist/build.knockout.es6"; alert("test: " + ko); tsconfig.json { "compilerOptions": { "removeComments": true, "preserveConstEnums": true, "sourceMap": true,