@atscript/core 0.1.37 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -0
- package/dist/index.cjs +7 -1038
- package/dist/index.d.ts +4 -25
- package/dist/index.mjs +7 -1036
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -279,7 +279,7 @@ interface TPrimitiveTypeObject {
|
|
|
279
279
|
propsPatterns: Record<string, TPrimitiveTypeDef>;
|
|
280
280
|
optional?: boolean;
|
|
281
281
|
}
|
|
282
|
-
type TPrimitiveTypeFinal = 'string' | 'number' | 'boolean' | 'void' | 'null' | 'phantom';
|
|
282
|
+
type TPrimitiveTypeFinal = 'string' | 'number' | 'boolean' | 'void' | 'null' | 'phantom' | 'decimal';
|
|
283
283
|
interface TPrimitiveTypeFinalOptional {
|
|
284
284
|
kind: 'final';
|
|
285
285
|
value: TPrimitiveTypeFinal;
|
|
@@ -368,7 +368,7 @@ declare class SemanticPrimitiveNode extends SemanticNode {
|
|
|
368
368
|
private readonly annotationTree?;
|
|
369
369
|
constructor(_id: string, config: TPrimitiveConfig, parentKey?: string, annotationTree?: TAnnotationsTree | undefined);
|
|
370
370
|
protected applyAnnotations(): void;
|
|
371
|
-
readonly type?: 'union' | 'intersection' | 'tuple' | 'array' | 'object' | 'string' | 'number' | 'boolean' | 'void' | 'null' | 'phantom';
|
|
371
|
+
readonly type?: 'union' | 'intersection' | 'tuple' | 'array' | 'object' | 'string' | 'number' | 'boolean' | 'void' | 'null' | 'phantom' | 'decimal';
|
|
372
372
|
get key(): string;
|
|
373
373
|
getAllTags(_processed?: Set<SemanticPrimitiveNode>): string[];
|
|
374
374
|
get id(): string;
|
|
@@ -896,27 +896,6 @@ declare function flattenInterfaceNode(doc: AtscriptDoc, node: SemanticInterfaceN
|
|
|
896
896
|
declare function hasNavPropAnnotation(prop: SemanticPropNode): boolean;
|
|
897
897
|
declare function isPhantomNode(doc: AtscriptDoc, def?: SemanticNode): boolean;
|
|
898
898
|
|
|
899
|
-
/**
|
|
900
|
-
* Validate a ref annotation argument against the document's type registry.
|
|
901
|
-
* Returns diagnostic messages for unknown types or fields.
|
|
902
|
-
*/
|
|
903
|
-
declare function validateRefArgument(token: Token, doc: AtscriptDoc, options?: {
|
|
904
|
-
requireDbTable?: boolean;
|
|
905
|
-
}): TMessages;
|
|
906
|
-
interface TFKFieldMatch {
|
|
907
|
-
name: string;
|
|
908
|
-
prop: SemanticPropNode;
|
|
909
|
-
chainRef: {
|
|
910
|
-
type: string;
|
|
911
|
-
field: string;
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
/**
|
|
915
|
-
* Find all `@db.rel.FK` fields on a type that reference `targetTypeName`.
|
|
916
|
-
* Resolves `extends` to include inherited fields.
|
|
917
|
-
*/
|
|
918
|
-
declare function findFKFieldsPointingTo(doc: AtscriptDoc, iface: SemanticInterfaceNode | SemanticStructureNode, targetTypeName: string, alias?: string): TFKFieldMatch[];
|
|
919
|
-
|
|
920
899
|
interface TQueryScope {
|
|
921
900
|
allowedTypes: string[];
|
|
922
901
|
unqualifiedTarget: string | null;
|
|
@@ -966,5 +945,5 @@ type TQueryCursorContext = {
|
|
|
966
945
|
*/
|
|
967
946
|
declare function analyzeQueryCursorContext(textBeforeCursor: string): TQueryCursorContext;
|
|
968
947
|
|
|
969
|
-
export { $n, AnnotationSpec, AtscriptDoc, AtscriptRepo, BuildRepo, DEFAULT_FORMAT, PluginManager, SemanticAnnotateNode, SemanticArrayNode, SemanticConstNode, SemanticGroup, SemanticImportNode, SemanticInterfaceNode, SemanticNode, SemanticPrimitiveNode, SemanticPropNode, SemanticQueryComparisonNode, SemanticQueryFieldRefNode, SemanticQueryLogicalNode, SemanticQueryNode, SemanticQueryValueListNode, SemanticQueryValueNode, SemanticRefNode, SemanticStructureNode, SemanticTupleNode, SemanticTypeNode, Token, analyzeQueryCursorContext, build, createAtscriptPlugin, defineConfig,
|
|
970
|
-
export type { SemanticQueryExprNode, TAnnotationArgument, TAnnotationSpecConfig, TAnnotationTokens, TAnnotationsTree, TAtscriptConfig, TAtscriptConfigInput, TAtscriptConfigOutput, TAtscriptDocConfig, TAtscriptPlugin, TAtscriptRenderFormat, TDbConfig, TDbConfigDeclarative,
|
|
948
|
+
export { $n, AnnotationSpec, AtscriptDoc, AtscriptRepo, BuildRepo, DEFAULT_FORMAT, PluginManager, SemanticAnnotateNode, SemanticArrayNode, SemanticConstNode, SemanticGroup, SemanticImportNode, SemanticInterfaceNode, SemanticNode, SemanticPrimitiveNode, SemanticPropNode, SemanticQueryComparisonNode, SemanticQueryFieldRefNode, SemanticQueryLogicalNode, SemanticQueryNode, SemanticQueryValueListNode, SemanticQueryValueNode, SemanticRefNode, SemanticStructureNode, SemanticTupleNode, SemanticTypeNode, Token, analyzeQueryCursorContext, build, createAtscriptPlugin, defineConfig, flattenInterfaceNode, getFieldsForType, getQueryCompletionScope, getQueryScope, getRelPath, hasNavPropAnnotation, isAnnotate, isAnnotationSpec, isArray, isConst, isGroup, isImport, isInterface, isPhantomNode, isPrimitive, isProp, isQueryComparison, isQueryFieldRef, isQueryLogical, isRef, isStructure, isTuple, isType, loadConfig, loadTsConfig, resolveAnnotation, resolveAtscriptFromPath, resolveConfigFile, resolveQueryFieldRef };
|
|
949
|
+
export type { SemanticQueryExprNode, TAnnotationArgument, TAnnotationSpecConfig, TAnnotationTokens, TAnnotationsTree, TAtscriptConfig, TAtscriptConfigInput, TAtscriptConfigOutput, TAtscriptDocConfig, TAtscriptPlugin, TAtscriptRenderFormat, TDbConfig, TDbConfigDeclarative, TFlatFieldDescriptor, TFlattenOptions, TMessages, TNodeEntity, TOutput, TOutputWithSource, TPluginManagers, TPluginOutput, TPrimitiveAnnotationArg, TPrimitiveAnnotationArgs, TPrimitiveAnnotationValue, TPrimitiveBaseConfig, TPrimitiveConfig, TPrimitiveTypeArray, TPrimitiveTypeComplex, TPrimitiveTypeDef, TPrimitiveTypeFinal, TPrimitiveTypeFinalOptional, TPrimitiveTypeObject, TQueryCursorContext, TQueryLogicalOperator, TQueryOperator, TQueryScope, TSemanticToken };
|