1
0
forked from Rowland/EG
EG/Cesium-1.132/node_modules/ts-declaration-location/dist/index.d.mts
2025-08-25 17:48:13 +08:00

45 lines
1008 B
TypeScript

// Generated by dts-bundle-generator v9.5.1
import ts from 'typescript';
/**
* How a type declaration can be matched.
*/
export type TypeDeclarationSpecifier = TypeDeclarationFileSpecifier | TypeDeclarationLibSpecifier | TypeDeclarationPackageSpecifier;
/**
* Type declaration defined in a file.
*/
export type TypeDeclarationFileSpecifier = {
from: "file";
/**
* The path to look in for the type, relative to project directory.
*/
path?: string;
};
/**
* Type declaration defined in the ts lib.
*/
export type TypeDeclarationLibSpecifier = {
from: "lib";
};
/**
* Type declaration defined in a package.
*/
export type TypeDeclarationPackageSpecifier = {
from: "package";
/**
* The package to look in.
*/
package?: string;
};
/**
* Test if the type matches the given specifier.
*/
declare function typeMatchesSpecifier(program: ts.Program, specifier: Readonly<TypeDeclarationSpecifier>, type: Readonly<ts.Type>): boolean;
export {
typeMatchesSpecifier as default,
};
export {};