mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
344 B
TypeScript
15 lines
344 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/cjsImportInES2015.ts] ////
|
|
|
|
//// [index.d.ts]
|
|
declare class SpecialError extends Error {}
|
|
export = SpecialError;
|
|
|
|
//// [index.ts]
|
|
import type SpecialError = require("cjs-dep");
|
|
function handleError(err: SpecialError) {}
|
|
|
|
|
|
//// [index.js]
|
|
function handleError(err) { }
|
|
export {};
|