@vue-macros/api
Advanced tools
Comparing version 0.5.0 to 0.5.1
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkWUOIXV55js = require('./chunk-WUOIXV55.js'); | ||
var _chunkRBVIWBQIjs = require('./chunk-RBVIWBQI.js'); | ||
@@ -21,3 +21,3 @@ | ||
var _chunkIVMHKMYKjs = require('./chunk-IVMHKMYK.js'); | ||
var _chunk5TD4KD7Sjs = require('./chunk-5TD4KD7S.js'); | ||
@@ -56,3 +56,3 @@ | ||
async function inferRuntimeType(node) { | ||
if (_chunkIVMHKMYKjs.isTSExports.call(void 0, node)) | ||
if (_chunk5TD4KD7Sjs.isTSExports.call(void 0, node)) | ||
return ["Object"]; | ||
@@ -122,3 +122,3 @@ switch (node.type.type) { | ||
if (node.type.typeParameters && node.type.typeParameters.params[1]) { | ||
const t = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
const t = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, { | ||
scope: node.scope, | ||
@@ -133,3 +133,3 @@ type: node.type.typeParameters.params[1] | ||
if (node.type.typeParameters && node.type.typeParameters.params[0]) { | ||
const t = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
const t = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, { | ||
scope: node.scope, | ||
@@ -148,7 +148,7 @@ type: node.type.typeParameters.params[0] | ||
node.type.types.map(async (subType) => { | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
const resolved = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, { | ||
scope: node.scope, | ||
type: subType | ||
}); | ||
return resolved && !_chunkIVMHKMYKjs.isTSExports.call(void 0, resolved) ? inferRuntimeType(resolved) : void 0; | ||
return resolved && !_chunk5TD4KD7Sjs.isTSExports.call(void 0, resolved) ? inferRuntimeType(resolved) : void 0; | ||
}) | ||
@@ -352,4 +352,4 @@ )).flatMap((t) => t ? t : ["null"]); | ||
async function resolveDefinitions(typeDeclRaw2) { | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkIVMHKMYKjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunk5TD4KD7Sjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
@@ -452,3 +452,3 @@ const { type: definitionsAst2, scope } = resolved; | ||
); | ||
const properties = await _chunkIVMHKMYKjs.resolveTSProperties.call(void 0, { | ||
const properties = await _chunk5TD4KD7Sjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -467,7 +467,7 @@ type: definitionsAst2 | ||
for (const [key, value] of Object.entries(properties.properties)) { | ||
const referenced = value.value ? await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
const referenced = value.value ? await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
definitions2[key] = { | ||
type: "property", | ||
addByAPI: false, | ||
value: referenced && !_chunkIVMHKMYKjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
value: referenced && !_chunk5TD4KD7Sjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
optional: value.optional, | ||
@@ -505,3 +505,3 @@ signature: buildDefinition(value.signature) | ||
return { | ||
code: _chunkIVMHKMYKjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunk5TD4KD7Sjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -593,9 +593,11 @@ scope | ||
var _a; | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkIVMHKMYKjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunk5TD4KD7Sjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const { type: definitionsAst2, scope } = resolved; | ||
if (definitionsAst2.type !== "TSInterfaceDeclaration" && definitionsAst2.type !== "TSTypeLiteral" && definitionsAst2.type !== "TSIntersectionType") | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const properties = await _chunkIVMHKMYKjs.resolveTSProperties.call(void 0, { | ||
if (definitionsAst2.type !== "TSInterfaceDeclaration" && definitionsAst2.type !== "TSTypeLiteral" && definitionsAst2.type !== "TSIntersectionType" && definitionsAst2.type !== "TSFunctionType") | ||
throw new SyntaxError( | ||
`Cannot resolve TS definition: ${definitionsAst2.type}` | ||
); | ||
const properties = await _chunk5TD4KD7Sjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -609,7 +611,7 @@ type: definitionsAst2 | ||
continue; | ||
const evtType = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
const evtType = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, { | ||
type: evtArg.typeAnnotation.typeAnnotation, | ||
scope: signature.scope | ||
}); | ||
if (_chunkIVMHKMYKjs.isTSExports.call(void 0, evtType) || !(evtType == null ? void 0 : evtType.type)) | ||
if (_chunk5TD4KD7Sjs.isTSExports.call(void 0, evtType) || !(evtType == null ? void 0 : evtType.type)) | ||
continue; | ||
@@ -641,3 +643,3 @@ const types = evtType.type.type === "TSUnionType" ? evtType.type.types : [evtType.type]; | ||
return { | ||
code: _chunkIVMHKMYKjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunk5TD4KD7Sjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -813,2 +815,2 @@ scope | ||
exports.DefinitionKind = DefinitionKind; exports.MagicString = _common.MagicString; exports.RollupResolve = _chunkWUOIXV55js.RollupResolve; exports.analyzeSFC = analyzeSFC; exports.attachNodeLoc = attachNodeLoc; exports.exportsSymbol = _chunkIVMHKMYKjs.exportsSymbol; exports.getTSFile = _chunkIVMHKMYKjs.getTSFile; exports.handleTSEmitsDefinition = handleTSEmitsDefinition; exports.handleTSPropsDefinition = handleTSPropsDefinition; exports.inferRuntimeType = inferRuntimeType; exports.isTSDeclaration = _chunkIVMHKMYKjs.isTSDeclaration; exports.isTSExports = _chunkIVMHKMYKjs.isTSExports; exports.keyToString = _chunk5IUQDHHYjs.keyToString; exports.mergeTSProperties = _chunkIVMHKMYKjs.mergeTSProperties; exports.parseSFC = _common.parseSFC; exports.resolveTSEntityName = _chunkIVMHKMYKjs.resolveTSEntityName; exports.resolveTSExports = _chunkIVMHKMYKjs.resolveTSExports; exports.resolveTSFileId = _chunkIVMHKMYKjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunkIVMHKMYKjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunkIVMHKMYKjs.resolveTSProperties; exports.resolveTSReferencedType = _chunkIVMHKMYKjs.resolveTSReferencedType; exports.resolveTSScope = _chunkIVMHKMYKjs.resolveTSScope; exports.resolveTypeElements = _chunkIVMHKMYKjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunkIVMHKMYKjs.setResolveTSFileIdImpl; exports.toRuntimeTypeString = toRuntimeTypeString; exports.tsFileCache = _chunkIVMHKMYKjs.tsFileCache; exports.tsFileExportsCache = _chunkIVMHKMYKjs.tsFileExportsCache; | ||
exports.DefinitionKind = DefinitionKind; exports.MagicString = _common.MagicString; exports.RollupResolve = _chunkRBVIWBQIjs.RollupResolve; exports.analyzeSFC = analyzeSFC; exports.attachNodeLoc = attachNodeLoc; exports.exportsSymbol = _chunk5TD4KD7Sjs.exportsSymbol; exports.getTSFile = _chunk5TD4KD7Sjs.getTSFile; exports.handleTSEmitsDefinition = handleTSEmitsDefinition; exports.handleTSPropsDefinition = handleTSPropsDefinition; exports.inferRuntimeType = inferRuntimeType; exports.isTSDeclaration = _chunk5TD4KD7Sjs.isTSDeclaration; exports.isTSExports = _chunk5TD4KD7Sjs.isTSExports; exports.keyToString = _chunk5IUQDHHYjs.keyToString; exports.mergeTSProperties = _chunk5TD4KD7Sjs.mergeTSProperties; exports.parseSFC = _common.parseSFC; exports.resolveTSEntityName = _chunk5TD4KD7Sjs.resolveTSEntityName; exports.resolveTSExports = _chunk5TD4KD7Sjs.resolveTSExports; exports.resolveTSFileId = _chunk5TD4KD7Sjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunk5TD4KD7Sjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunk5TD4KD7Sjs.resolveTSProperties; exports.resolveTSReferencedType = _chunk5TD4KD7Sjs.resolveTSReferencedType; exports.resolveTSScope = _chunk5TD4KD7Sjs.resolveTSScope; exports.resolveTypeElements = _chunk5TD4KD7Sjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunk5TD4KD7Sjs.setResolveTSFileIdImpl; exports.toRuntimeTypeString = toRuntimeTypeString; exports.tsFileCache = _chunk5TD4KD7Sjs.tsFileCache; exports.tsFileExportsCache = _chunk5TD4KD7Sjs.tsFileExportsCache; |
import { MagicString, SFC } from '@vue-macros/common'; | ||
export { MagicString, SFC, parseSFC } from '@vue-macros/common'; | ||
import { Node, TSModuleBlock, CallExpression, TSType, LVal, VariableDeclaration, ExpressionStatement, TSCallSignatureDeclaration, TSTypeLiteral, TSIntersectionType, TSInterfaceDeclaration, StringLiteral, TSMethodSignature, TSPropertySignature, TSMappedType, TSUnionType, ObjectMethod, ObjectProperty, Expression } from '@babel/types'; | ||
import { Node, TSModuleBlock, CallExpression, TSType, LVal, VariableDeclaration, ExpressionStatement, TSCallSignatureDeclaration, TSFunctionType, TSTypeLiteral, TSIntersectionType, TSInterfaceDeclaration, StringLiteral, TSMethodSignature, TSPropertySignature, TSMappedType, TSUnionType, ObjectMethod, ObjectProperty, Expression } from '@babel/types'; | ||
import { TSFile, TSResolvedType, TSExports } from './ts.js'; | ||
@@ -56,4 +56,4 @@ export { ResolveTSFileIdImpl, TSDeclaration, TSProperties, TSScope, exportsSymbol, getTSFile, isTSDeclaration, isTSExports, mergeTSProperties, resolveTSEntityName, resolveTSExports, resolveTSFileId, resolveTSFileIdNode, resolveTSProperties, resolveTSReferencedType, resolveTSScope, resolveTypeElements, setResolveTSFileIdImpl, tsFileCache, tsFileExportsCache } from './ts.js'; | ||
kind: DefinitionKind.TS; | ||
definitions: Record<string, ASTDefinition<TSCallSignatureDeclaration>[]>; | ||
definitionsAst: ASTDefinition<TSTypeLiteral | TSIntersectionType | TSInterfaceDeclaration>; | ||
definitions: Record<string, ASTDefinition<TSCallSignatureDeclaration | TSFunctionType>[]>; | ||
definitionsAst: ASTDefinition<TSTypeLiteral | TSIntersectionType | TSInterfaceDeclaration | TSFunctionType>; | ||
/** | ||
@@ -60,0 +60,0 @@ * Adds a new emit to the definitions. `definitions` will updated after this call. |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkWUOIXV55js = require('./chunk-WUOIXV55.js'); | ||
var _chunkRBVIWBQIjs = require('./chunk-RBVIWBQI.js'); | ||
@@ -21,3 +21,3 @@ | ||
var _chunkIVMHKMYKjs = require('./chunk-IVMHKMYK.js'); | ||
var _chunk5TD4KD7Sjs = require('./chunk-5TD4KD7S.js'); | ||
@@ -56,3 +56,3 @@ | ||
async function inferRuntimeType(node) { | ||
if (_chunkIVMHKMYKjs.isTSExports.call(void 0, node)) | ||
if (_chunk5TD4KD7Sjs.isTSExports.call(void 0, node)) | ||
return ["Object"]; | ||
@@ -122,3 +122,3 @@ switch (node.type.type) { | ||
if (node.type.typeParameters && node.type.typeParameters.params[1]) { | ||
const t = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
const t = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, { | ||
scope: node.scope, | ||
@@ -133,3 +133,3 @@ type: node.type.typeParameters.params[1] | ||
if (node.type.typeParameters && node.type.typeParameters.params[0]) { | ||
const t = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
const t = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, { | ||
scope: node.scope, | ||
@@ -148,7 +148,7 @@ type: node.type.typeParameters.params[0] | ||
node.type.types.map(async (subType) => { | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
const resolved = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, { | ||
scope: node.scope, | ||
type: subType | ||
}); | ||
return resolved && !_chunkIVMHKMYKjs.isTSExports.call(void 0, resolved) ? inferRuntimeType(resolved) : void 0; | ||
return resolved && !_chunk5TD4KD7Sjs.isTSExports.call(void 0, resolved) ? inferRuntimeType(resolved) : void 0; | ||
}) | ||
@@ -352,4 +352,4 @@ )).flatMap((t) => t ? t : ["null"]); | ||
async function resolveDefinitions(typeDeclRaw2) { | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkIVMHKMYKjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunk5TD4KD7Sjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
@@ -452,3 +452,3 @@ const { type: definitionsAst2, scope } = resolved; | ||
); | ||
const properties = await _chunkIVMHKMYKjs.resolveTSProperties.call(void 0, { | ||
const properties = await _chunk5TD4KD7Sjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -467,7 +467,7 @@ type: definitionsAst2 | ||
for (const [key, value] of Object.entries(properties.properties)) { | ||
const referenced = value.value ? await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
const referenced = value.value ? await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
definitions2[key] = { | ||
type: "property", | ||
addByAPI: false, | ||
value: referenced && !_chunkIVMHKMYKjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
value: referenced && !_chunk5TD4KD7Sjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
optional: value.optional, | ||
@@ -505,3 +505,3 @@ signature: buildDefinition(value.signature) | ||
return { | ||
code: _chunkIVMHKMYKjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunk5TD4KD7Sjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -593,9 +593,11 @@ scope | ||
var _a; | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkIVMHKMYKjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunk5TD4KD7Sjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const { type: definitionsAst2, scope } = resolved; | ||
if (definitionsAst2.type !== "TSInterfaceDeclaration" && definitionsAst2.type !== "TSTypeLiteral" && definitionsAst2.type !== "TSIntersectionType") | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const properties = await _chunkIVMHKMYKjs.resolveTSProperties.call(void 0, { | ||
if (definitionsAst2.type !== "TSInterfaceDeclaration" && definitionsAst2.type !== "TSTypeLiteral" && definitionsAst2.type !== "TSIntersectionType" && definitionsAst2.type !== "TSFunctionType") | ||
throw new SyntaxError( | ||
`Cannot resolve TS definition: ${definitionsAst2.type}` | ||
); | ||
const properties = await _chunk5TD4KD7Sjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -609,7 +611,7 @@ type: definitionsAst2 | ||
continue; | ||
const evtType = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
const evtType = await _chunk5TD4KD7Sjs.resolveTSReferencedType.call(void 0, { | ||
type: evtArg.typeAnnotation.typeAnnotation, | ||
scope: signature.scope | ||
}); | ||
if (_chunkIVMHKMYKjs.isTSExports.call(void 0, evtType) || !(evtType == null ? void 0 : evtType.type)) | ||
if (_chunk5TD4KD7Sjs.isTSExports.call(void 0, evtType) || !(evtType == null ? void 0 : evtType.type)) | ||
continue; | ||
@@ -641,3 +643,3 @@ const types = evtType.type.type === "TSUnionType" ? evtType.type.types : [evtType.type]; | ||
return { | ||
code: _chunkIVMHKMYKjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunk5TD4KD7Sjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -813,2 +815,2 @@ scope | ||
exports.DefinitionKind = DefinitionKind; exports.MagicString = _common.MagicString; exports.RollupResolve = _chunkWUOIXV55js.RollupResolve; exports.analyzeSFC = analyzeSFC; exports.attachNodeLoc = attachNodeLoc; exports.exportsSymbol = _chunkIVMHKMYKjs.exportsSymbol; exports.getTSFile = _chunkIVMHKMYKjs.getTSFile; exports.handleTSEmitsDefinition = handleTSEmitsDefinition; exports.handleTSPropsDefinition = handleTSPropsDefinition; exports.inferRuntimeType = inferRuntimeType; exports.isTSDeclaration = _chunkIVMHKMYKjs.isTSDeclaration; exports.isTSExports = _chunkIVMHKMYKjs.isTSExports; exports.keyToString = _chunk5IUQDHHYjs.keyToString; exports.mergeTSProperties = _chunkIVMHKMYKjs.mergeTSProperties; exports.parseSFC = _common.parseSFC; exports.resolveTSEntityName = _chunkIVMHKMYKjs.resolveTSEntityName; exports.resolveTSExports = _chunkIVMHKMYKjs.resolveTSExports; exports.resolveTSFileId = _chunkIVMHKMYKjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunkIVMHKMYKjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunkIVMHKMYKjs.resolveTSProperties; exports.resolveTSReferencedType = _chunkIVMHKMYKjs.resolveTSReferencedType; exports.resolveTSScope = _chunkIVMHKMYKjs.resolveTSScope; exports.resolveTypeElements = _chunkIVMHKMYKjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunkIVMHKMYKjs.setResolveTSFileIdImpl; exports.toRuntimeTypeString = toRuntimeTypeString; exports.tsFileCache = _chunkIVMHKMYKjs.tsFileCache; exports.tsFileExportsCache = _chunkIVMHKMYKjs.tsFileExportsCache; | ||
exports.DefinitionKind = DefinitionKind; exports.MagicString = _common.MagicString; exports.RollupResolve = _chunkRBVIWBQIjs.RollupResolve; exports.analyzeSFC = analyzeSFC; exports.attachNodeLoc = attachNodeLoc; exports.exportsSymbol = _chunk5TD4KD7Sjs.exportsSymbol; exports.getTSFile = _chunk5TD4KD7Sjs.getTSFile; exports.handleTSEmitsDefinition = handleTSEmitsDefinition; exports.handleTSPropsDefinition = handleTSPropsDefinition; exports.inferRuntimeType = inferRuntimeType; exports.isTSDeclaration = _chunk5TD4KD7Sjs.isTSDeclaration; exports.isTSExports = _chunk5TD4KD7Sjs.isTSExports; exports.keyToString = _chunk5IUQDHHYjs.keyToString; exports.mergeTSProperties = _chunk5TD4KD7Sjs.mergeTSProperties; exports.parseSFC = _common.parseSFC; exports.resolveTSEntityName = _chunk5TD4KD7Sjs.resolveTSEntityName; exports.resolveTSExports = _chunk5TD4KD7Sjs.resolveTSExports; exports.resolveTSFileId = _chunk5TD4KD7Sjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunk5TD4KD7Sjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunk5TD4KD7Sjs.resolveTSProperties; exports.resolveTSReferencedType = _chunk5TD4KD7Sjs.resolveTSReferencedType; exports.resolveTSScope = _chunk5TD4KD7Sjs.resolveTSScope; exports.resolveTypeElements = _chunk5TD4KD7Sjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunk5TD4KD7Sjs.setResolveTSFileIdImpl; exports.toRuntimeTypeString = toRuntimeTypeString; exports.tsFileCache = _chunk5TD4KD7Sjs.tsFileCache; exports.tsFileExportsCache = _chunk5TD4KD7Sjs.tsFileExportsCache; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkWUOIXV55js = require('./chunk-WUOIXV55.js'); | ||
require('./chunk-IVMHKMYK.js'); | ||
var _chunkRBVIWBQIjs = require('./chunk-RBVIWBQI.js'); | ||
require('./chunk-5TD4KD7S.js'); | ||
exports.RollupResolve = _chunkWUOIXV55js.RollupResolve; | ||
exports.RollupResolve = _chunkRBVIWBQIjs.RollupResolve; | ||
exports.default = module.exports; |
@@ -1,2 +0,2 @@ | ||
import { TSDeclareFunction, TSInterfaceDeclaration, TSTypeAliasDeclaration, TSEnumDeclaration, TSModuleDeclaration, Statement, TSModuleBlock, TSCallSignatureDeclaration, TSConstructSignatureDeclaration, TSMethodSignature, TSType, TSPropertySignature, TSMappedType, TSInterfaceBody, TSTypeLiteral, TSIntersectionType, TSTypeElement, TSParenthesizedType, Identifier, TSEntityName } from '@babel/types'; | ||
import { TSDeclareFunction, TSInterfaceDeclaration, TSTypeAliasDeclaration, TSEnumDeclaration, TSModuleDeclaration, Statement, TSModuleBlock, TSCallSignatureDeclaration, TSFunctionType, TSConstructSignatureDeclaration, TSMethodSignature, TSType, TSPropertySignature, TSMappedType, TSInterfaceBody, TSTypeLiteral, TSIntersectionType, TSTypeElement, TSParenthesizedType, Identifier, TSEntityName } from '@babel/types'; | ||
@@ -11,3 +11,3 @@ type TSDeclaration = TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration; | ||
interface TSProperties { | ||
callSignatures: Array<TSResolvedType<TSCallSignatureDeclaration>>; | ||
callSignatures: Array<TSResolvedType<TSCallSignatureDeclaration | TSFunctionType>>; | ||
constructSignatures: Array<TSResolvedType<TSConstructSignatureDeclaration>>; | ||
@@ -30,3 +30,3 @@ methods: Record<string | number, Array<TSResolvedType<TSMethodSignature>>>; | ||
*/ | ||
declare function resolveTSProperties({ type, scope, }: TSResolvedType<TSInterfaceDeclaration | TSInterfaceBody | TSTypeLiteral | TSIntersectionType | TSMappedType>): Promise<TSProperties>; | ||
declare function resolveTSProperties({ type, scope, }: TSResolvedType<TSInterfaceDeclaration | TSInterfaceBody | TSTypeLiteral | TSIntersectionType | TSMappedType | TSFunctionType>): Promise<TSProperties>; | ||
/** | ||
@@ -33,0 +33,0 @@ * @limitation don't support index signature |
@@ -18,3 +18,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkIVMHKMYKjs = require('./chunk-IVMHKMYK.js'); | ||
var _chunk5TD4KD7Sjs = require('./chunk-5TD4KD7S.js'); | ||
@@ -37,3 +37,3 @@ | ||
exports.exportsSymbol = _chunkIVMHKMYKjs.exportsSymbol; exports.getTSFile = _chunkIVMHKMYKjs.getTSFile; exports.isTSDeclaration = _chunkIVMHKMYKjs.isTSDeclaration; exports.isTSExports = _chunkIVMHKMYKjs.isTSExports; exports.mergeTSProperties = _chunkIVMHKMYKjs.mergeTSProperties; exports.resolveTSEntityName = _chunkIVMHKMYKjs.resolveTSEntityName; exports.resolveTSExports = _chunkIVMHKMYKjs.resolveTSExports; exports.resolveTSFileId = _chunkIVMHKMYKjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunkIVMHKMYKjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunkIVMHKMYKjs.resolveTSProperties; exports.resolveTSReferencedType = _chunkIVMHKMYKjs.resolveTSReferencedType; exports.resolveTSScope = _chunkIVMHKMYKjs.resolveTSScope; exports.resolveTypeElements = _chunkIVMHKMYKjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunkIVMHKMYKjs.setResolveTSFileIdImpl; exports.tsFileCache = _chunkIVMHKMYKjs.tsFileCache; exports.tsFileExportsCache = _chunkIVMHKMYKjs.tsFileExportsCache; | ||
exports.exportsSymbol = _chunk5TD4KD7Sjs.exportsSymbol; exports.getTSFile = _chunk5TD4KD7Sjs.getTSFile; exports.isTSDeclaration = _chunk5TD4KD7Sjs.isTSDeclaration; exports.isTSExports = _chunk5TD4KD7Sjs.isTSExports; exports.mergeTSProperties = _chunk5TD4KD7Sjs.mergeTSProperties; exports.resolveTSEntityName = _chunk5TD4KD7Sjs.resolveTSEntityName; exports.resolveTSExports = _chunk5TD4KD7Sjs.resolveTSExports; exports.resolveTSFileId = _chunk5TD4KD7Sjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunk5TD4KD7Sjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunk5TD4KD7Sjs.resolveTSProperties; exports.resolveTSReferencedType = _chunk5TD4KD7Sjs.resolveTSReferencedType; exports.resolveTSScope = _chunk5TD4KD7Sjs.resolveTSScope; exports.resolveTypeElements = _chunk5TD4KD7Sjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunk5TD4KD7Sjs.setResolveTSFileIdImpl; exports.tsFileCache = _chunk5TD4KD7Sjs.tsFileCache; exports.tsFileExportsCache = _chunk5TD4KD7Sjs.tsFileExportsCache; | ||
exports.default = module.exports; |
{ | ||
"name": "@vue-macros/api", | ||
"version": "0.5.0", | ||
"packageManager": "pnpm@7.30.0", | ||
"version": "0.5.1", | ||
"packageManager": "pnpm@7.30.3", | ||
"description": "General API for Vue Macros.", | ||
@@ -43,6 +43,6 @@ "keywords": [ | ||
"@babel/types": "^7.21.3", | ||
"@vue-macros/common": "~1.1.4" | ||
"@vue-macros/common": "~1.2.0" | ||
}, | ||
"devDependencies": { | ||
"rollup": "^3.20.0" | ||
"rollup": "^3.20.2" | ||
}, | ||
@@ -49,0 +49,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120512
3563
+ Added@vue-macros/common@1.2.0(transitive)
- Removed@vue-macros/common@1.1.4(transitive)
Updated@vue-macros/common@~1.2.0