UNPKG

2.6 kBTypeScriptView Raw
1import type { EnumKeys } from "../../utils";
2/**
3 * Defines the available reflection kinds.
4 * @category Reflections
5 */
6export declare enum ReflectionKind {
7 Project = 1,
8 Module = 2,
9 Namespace = 4,
10 Enum = 8,
11 EnumMember = 16,
12 Variable = 32,
13 Function = 64,
14 Class = 128,
15 Interface = 256,
16 Constructor = 512,
17 Property = 1024,
18 Method = 2048,
19 CallSignature = 4096,
20 IndexSignature = 8192,
21 ConstructorSignature = 16384,
22 Parameter = 32768,
23 TypeLiteral = 65536,
24 TypeParameter = 131072,
25 Accessor = 262144,
26 GetSignature = 524288,
27 SetSignature = 1048576,
28 TypeAlias = 2097152,
29 Reference = 4194304,
30 /**
31 * Generic non-ts content to be included in the generated docs as its own page.
32 */
33 Document = 8388608
34}
35/** @category Reflections */
36export declare namespace ReflectionKind {
37 type KindString = EnumKeys<typeof ReflectionKind>;
38 /** @internal */
39 const All: number;
40 /** @internal */
41 const ClassOrInterface: number;
42 /** @internal */
43 const VariableOrProperty: number;
44 /** @internal */
45 const FunctionOrMethod: number;
46 /** @internal */
47 const ClassMember: number;
48 /** @internal */
49 const SomeSignature: number;
50 /** @internal */
51 const SomeModule: number;
52 /** @internal */
53 const SomeType: number;
54 /** @internal */
55 const SomeValue: number;
56 /** @internal */
57 const SomeMember: number;
58 /** @internal */
59 const SomeExport: number;
60 /** @internal */
61 const MayContainDocuments: number;
62 /** @internal */
63 const ExportContainer: number;
64 /** @internal */
65 const Inheritable: number;
66 /** @internal */
67 const ContainsCallSignatures: number;
68 /** @internal */
69 const TypeReferenceTarget: number;
70 /** @internal */
71 const ValueReferenceTarget: number;
72 /**
73 * Note: This does not include Class/Interface, even though they technically could contain index signatures
74 * @internal
75 */
76 const SignatureContainer: number;
77 /** @internal */
78 const VariableContainer: number;
79 /** @internal */
80 const MethodContainer: number;
81 /**
82 * Get a non-localized kind string. For the localized string, use `app.internationalization.kindSingularString(kind)`
83 */
84 function singularString(kind: ReflectionKind): string;
85 /**
86 * Get a non-localized kind string. For the localized string, use `app.internationalization.kindPluralString(kind)`
87 */
88 function pluralString(kind: ReflectionKind): string;
89 function classString(kind: ReflectionKind): string;
90}