@vue-macros/api
Advanced tools
Comparing version 0.4.10 to 0.5.0
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkB5I3YMZMjs = require('./chunk-B5I3YMZM.js'); | ||
var _chunkWUOIXV55js = require('./chunk-WUOIXV55.js'); | ||
@@ -21,3 +21,3 @@ | ||
var _chunkZZPAR7YFjs = require('./chunk-ZZPAR7YF.js'); | ||
var _chunkIVMHKMYKjs = require('./chunk-IVMHKMYK.js'); | ||
@@ -56,3 +56,3 @@ | ||
async function inferRuntimeType(node) { | ||
if (_chunkZZPAR7YFjs.isTSExports.call(void 0, node)) | ||
if (_chunkIVMHKMYKjs.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 _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, { | ||
const t = await _chunkIVMHKMYKjs.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 _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, { | ||
const t = await _chunkIVMHKMYKjs.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 _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, { | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
scope: node.scope, | ||
type: subType | ||
}); | ||
return resolved && !_chunkZZPAR7YFjs.isTSExports.call(void 0, resolved) ? inferRuntimeType(resolved) : void 0; | ||
return resolved && !_chunkIVMHKMYKjs.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 _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkZZPAR7YFjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkIVMHKMYKjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
@@ -448,5 +448,7 @@ const { type: definitionsAst2, scope } = resolved; | ||
}; | ||
} else if (definitionsAst2.type !== "TSInterfaceDeclaration" && definitionsAst2.type !== "TSTypeLiteral") | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const properties = await _chunkZZPAR7YFjs.resolveTSProperties.call(void 0, { | ||
} else if (definitionsAst2.type !== "TSInterfaceDeclaration" && definitionsAst2.type !== "TSTypeLiteral" && definitionsAst2.type !== "TSMappedType") | ||
throw new SyntaxError( | ||
`Cannot resolve TS definition: ${definitionsAst2.type}.` | ||
); | ||
const properties = await _chunkIVMHKMYKjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -465,7 +467,7 @@ type: definitionsAst2 | ||
for (const [key, value] of Object.entries(properties.properties)) { | ||
const referenced = value.value ? await _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
const referenced = value.value ? await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
definitions2[key] = { | ||
type: "property", | ||
addByAPI: false, | ||
value: referenced && !_chunkZZPAR7YFjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
value: referenced && !_chunkIVMHKMYKjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
optional: value.optional, | ||
@@ -503,3 +505,3 @@ signature: buildDefinition(value.signature) | ||
return { | ||
code: _chunkZZPAR7YFjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunkIVMHKMYKjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -591,4 +593,4 @@ scope | ||
var _a; | ||
const resolved = await _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkZZPAR7YFjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkIVMHKMYKjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
@@ -598,3 +600,3 @@ const { type: definitionsAst2, scope } = resolved; | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const properties = await _chunkZZPAR7YFjs.resolveTSProperties.call(void 0, { | ||
const properties = await _chunkIVMHKMYKjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -608,7 +610,7 @@ type: definitionsAst2 | ||
continue; | ||
const evtType = await _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, { | ||
const evtType = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
type: evtArg.typeAnnotation.typeAnnotation, | ||
scope: signature.scope | ||
}); | ||
if (_chunkZZPAR7YFjs.isTSExports.call(void 0, evtType) || !(evtType == null ? void 0 : evtType.type)) | ||
if (_chunkIVMHKMYKjs.isTSExports.call(void 0, evtType) || !(evtType == null ? void 0 : evtType.type)) | ||
continue; | ||
@@ -640,3 +642,3 @@ const types = evtType.type.type === "TSUnionType" ? evtType.type.types : [evtType.type]; | ||
return { | ||
code: _chunkZZPAR7YFjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunkIVMHKMYKjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -812,2 +814,2 @@ scope | ||
exports.DefinitionKind = DefinitionKind; exports.MagicString = _common.MagicString; exports.RollupResolve = _chunkB5I3YMZMjs.RollupResolve; exports.analyzeSFC = analyzeSFC; exports.attachNodeLoc = attachNodeLoc; exports.exportsSymbol = _chunkZZPAR7YFjs.exportsSymbol; exports.getTSFile = _chunkZZPAR7YFjs.getTSFile; exports.handleTSEmitsDefinition = handleTSEmitsDefinition; exports.handleTSPropsDefinition = handleTSPropsDefinition; exports.inferRuntimeType = inferRuntimeType; exports.isTSDeclaration = _chunkZZPAR7YFjs.isTSDeclaration; exports.isTSExports = _chunkZZPAR7YFjs.isTSExports; exports.keyToString = _chunk5IUQDHHYjs.keyToString; exports.mergeTSProperties = _chunkZZPAR7YFjs.mergeTSProperties; exports.parseSFC = _common.parseSFC; exports.resolveTSEntityName = _chunkZZPAR7YFjs.resolveTSEntityName; exports.resolveTSExports = _chunkZZPAR7YFjs.resolveTSExports; exports.resolveTSFileId = _chunkZZPAR7YFjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunkZZPAR7YFjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunkZZPAR7YFjs.resolveTSProperties; exports.resolveTSReferencedType = _chunkZZPAR7YFjs.resolveTSReferencedType; exports.resolveTSScope = _chunkZZPAR7YFjs.resolveTSScope; exports.resolveTypeElements = _chunkZZPAR7YFjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunkZZPAR7YFjs.setResolveTSFileIdImpl; exports.toRuntimeTypeString = toRuntimeTypeString; exports.tsFileCache = _chunkZZPAR7YFjs.tsFileCache; exports.tsFileExportsCache = _chunkZZPAR7YFjs.tsFileExportsCache; | ||
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; |
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, TSUnionType, ObjectMethod, ObjectProperty, Expression } from '@babel/types'; | ||
import { Node, TSModuleBlock, CallExpression, TSType, LVal, VariableDeclaration, ExpressionStatement, TSCallSignatureDeclaration, TSTypeLiteral, TSIntersectionType, TSInterfaceDeclaration, StringLiteral, TSMethodSignature, TSPropertySignature, TSMappedType, TSUnionType, ObjectMethod, ObjectProperty, Expression } from '@babel/types'; | ||
import { TSFile, TSResolvedType, TSExports } from './ts.js'; | ||
@@ -116,3 +116,3 @@ export { ResolveTSFileIdImpl, TSDeclaration, TSProperties, TSScope, exportsSymbol, getTSFile, isTSDeclaration, isTSExports, mergeTSProperties, resolveTSEntityName, resolveTSExports, resolveTSFileId, resolveTSFileIdNode, resolveTSProperties, resolveTSReferencedType, resolveTSScope, resolveTypeElements, setResolveTSFileIdImpl, tsFileCache, tsFileExportsCache } from './ts.js'; | ||
optional: boolean; | ||
signature: ASTDefinition<TSPropertySignature>; | ||
signature: ASTDefinition<TSPropertySignature | TSMappedType>; | ||
/** Whether added by `addProp` API */ | ||
@@ -129,3 +129,3 @@ addByAPI: boolean; | ||
definitions: Record<string | number, TSPropsMethod | TSPropsProperty>; | ||
definitionsAst: ASTDefinition<TSInterfaceDeclaration | TSTypeLiteral | TSIntersectionType | TSUnionType>; | ||
definitionsAst: ASTDefinition<TSInterfaceDeclaration | TSTypeLiteral | TSIntersectionType | TSUnionType | TSMappedType>; | ||
/** | ||
@@ -132,0 +132,0 @@ * Default value of props. |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkB5I3YMZMjs = require('./chunk-B5I3YMZM.js'); | ||
var _chunkWUOIXV55js = require('./chunk-WUOIXV55.js'); | ||
@@ -21,3 +21,3 @@ | ||
var _chunkZZPAR7YFjs = require('./chunk-ZZPAR7YF.js'); | ||
var _chunkIVMHKMYKjs = require('./chunk-IVMHKMYK.js'); | ||
@@ -56,3 +56,3 @@ | ||
async function inferRuntimeType(node) { | ||
if (_chunkZZPAR7YFjs.isTSExports.call(void 0, node)) | ||
if (_chunkIVMHKMYKjs.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 _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, { | ||
const t = await _chunkIVMHKMYKjs.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 _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, { | ||
const t = await _chunkIVMHKMYKjs.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 _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, { | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
scope: node.scope, | ||
type: subType | ||
}); | ||
return resolved && !_chunkZZPAR7YFjs.isTSExports.call(void 0, resolved) ? inferRuntimeType(resolved) : void 0; | ||
return resolved && !_chunkIVMHKMYKjs.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 _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkZZPAR7YFjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkIVMHKMYKjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
@@ -448,5 +448,7 @@ const { type: definitionsAst2, scope } = resolved; | ||
}; | ||
} else if (definitionsAst2.type !== "TSInterfaceDeclaration" && definitionsAst2.type !== "TSTypeLiteral") | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const properties = await _chunkZZPAR7YFjs.resolveTSProperties.call(void 0, { | ||
} else if (definitionsAst2.type !== "TSInterfaceDeclaration" && definitionsAst2.type !== "TSTypeLiteral" && definitionsAst2.type !== "TSMappedType") | ||
throw new SyntaxError( | ||
`Cannot resolve TS definition: ${definitionsAst2.type}.` | ||
); | ||
const properties = await _chunkIVMHKMYKjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -465,7 +467,7 @@ type: definitionsAst2 | ||
for (const [key, value] of Object.entries(properties.properties)) { | ||
const referenced = value.value ? await _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
const referenced = value.value ? await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, value.value) : void 0; | ||
definitions2[key] = { | ||
type: "property", | ||
addByAPI: false, | ||
value: referenced && !_chunkZZPAR7YFjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
value: referenced && !_chunkIVMHKMYKjs.isTSExports.call(void 0, referenced) ? buildDefinition(referenced) : void 0, | ||
optional: value.optional, | ||
@@ -503,3 +505,3 @@ signature: buildDefinition(value.signature) | ||
return { | ||
code: _chunkZZPAR7YFjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunkIVMHKMYKjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -591,4 +593,4 @@ scope | ||
var _a; | ||
const resolved = await _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkZZPAR7YFjs.isTSExports.call(void 0, resolved)) | ||
const resolved = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, typeDeclRaw2); | ||
if (!resolved || _chunkIVMHKMYKjs.isTSExports.call(void 0, resolved)) | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
@@ -598,3 +600,3 @@ const { type: definitionsAst2, scope } = resolved; | ||
throw new SyntaxError(`Cannot resolve TS definition.`); | ||
const properties = await _chunkZZPAR7YFjs.resolveTSProperties.call(void 0, { | ||
const properties = await _chunkIVMHKMYKjs.resolveTSProperties.call(void 0, { | ||
scope, | ||
@@ -608,7 +610,7 @@ type: definitionsAst2 | ||
continue; | ||
const evtType = await _chunkZZPAR7YFjs.resolveTSReferencedType.call(void 0, { | ||
const evtType = await _chunkIVMHKMYKjs.resolveTSReferencedType.call(void 0, { | ||
type: evtArg.typeAnnotation.typeAnnotation, | ||
scope: signature.scope | ||
}); | ||
if (_chunkZZPAR7YFjs.isTSExports.call(void 0, evtType) || !(evtType == null ? void 0 : evtType.type)) | ||
if (_chunkIVMHKMYKjs.isTSExports.call(void 0, evtType) || !(evtType == null ? void 0 : evtType.type)) | ||
continue; | ||
@@ -640,3 +642,3 @@ const types = evtType.type.type === "TSUnionType" ? evtType.type.types : [evtType.type]; | ||
return { | ||
code: _chunkZZPAR7YFjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
code: _chunkIVMHKMYKjs.resolveTSScope.call(void 0, scope).file.content.slice(type.start, type.end), | ||
ast: type, | ||
@@ -812,2 +814,2 @@ scope | ||
exports.DefinitionKind = DefinitionKind; exports.MagicString = _common.MagicString; exports.RollupResolve = _chunkB5I3YMZMjs.RollupResolve; exports.analyzeSFC = analyzeSFC; exports.attachNodeLoc = attachNodeLoc; exports.exportsSymbol = _chunkZZPAR7YFjs.exportsSymbol; exports.getTSFile = _chunkZZPAR7YFjs.getTSFile; exports.handleTSEmitsDefinition = handleTSEmitsDefinition; exports.handleTSPropsDefinition = handleTSPropsDefinition; exports.inferRuntimeType = inferRuntimeType; exports.isTSDeclaration = _chunkZZPAR7YFjs.isTSDeclaration; exports.isTSExports = _chunkZZPAR7YFjs.isTSExports; exports.keyToString = _chunk5IUQDHHYjs.keyToString; exports.mergeTSProperties = _chunkZZPAR7YFjs.mergeTSProperties; exports.parseSFC = _common.parseSFC; exports.resolveTSEntityName = _chunkZZPAR7YFjs.resolveTSEntityName; exports.resolveTSExports = _chunkZZPAR7YFjs.resolveTSExports; exports.resolveTSFileId = _chunkZZPAR7YFjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunkZZPAR7YFjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunkZZPAR7YFjs.resolveTSProperties; exports.resolveTSReferencedType = _chunkZZPAR7YFjs.resolveTSReferencedType; exports.resolveTSScope = _chunkZZPAR7YFjs.resolveTSScope; exports.resolveTypeElements = _chunkZZPAR7YFjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunkZZPAR7YFjs.setResolveTSFileIdImpl; exports.toRuntimeTypeString = toRuntimeTypeString; exports.tsFileCache = _chunkZZPAR7YFjs.tsFileCache; exports.tsFileExportsCache = _chunkZZPAR7YFjs.tsFileExportsCache; | ||
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; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkB5I3YMZMjs = require('./chunk-B5I3YMZM.js'); | ||
require('./chunk-ZZPAR7YF.js'); | ||
var _chunkWUOIXV55js = require('./chunk-WUOIXV55.js'); | ||
require('./chunk-IVMHKMYK.js'); | ||
exports.RollupResolve = _chunkB5I3YMZMjs.RollupResolve; | ||
exports.RollupResolve = _chunkWUOIXV55js.RollupResolve; | ||
exports.default = module.exports; |
@@ -1,2 +0,2 @@ | ||
import { TSDeclareFunction, TSInterfaceDeclaration, TSTypeAliasDeclaration, TSEnumDeclaration, TSModuleDeclaration, Statement, TSModuleBlock, TSCallSignatureDeclaration, TSConstructSignatureDeclaration, TSMethodSignature, TSType, TSPropertySignature, TSInterfaceBody, TSTypeLiteral, TSIntersectionType, TSTypeElement, TSParenthesizedType, Identifier, TSEntityName } from '@babel/types'; | ||
import { TSDeclareFunction, TSInterfaceDeclaration, TSTypeAliasDeclaration, TSEnumDeclaration, TSModuleDeclaration, Statement, TSModuleBlock, TSCallSignatureDeclaration, TSConstructSignatureDeclaration, TSMethodSignature, TSType, TSPropertySignature, TSMappedType, TSInterfaceBody, TSTypeLiteral, TSIntersectionType, TSTypeElement, TSParenthesizedType, Identifier, TSEntityName } from '@babel/types'; | ||
@@ -17,3 +17,3 @@ type TSDeclaration = TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration; | ||
optional: boolean; | ||
signature: TSResolvedType<TSPropertySignature>; | ||
signature: TSResolvedType<TSPropertySignature | TSMappedType>; | ||
}>; | ||
@@ -30,3 +30,3 @@ } | ||
*/ | ||
declare function resolveTSProperties({ type, scope, }: TSResolvedType<TSInterfaceDeclaration | TSInterfaceBody | TSTypeLiteral | TSIntersectionType>): Promise<TSProperties>; | ||
declare function resolveTSProperties({ type, scope, }: TSResolvedType<TSInterfaceDeclaration | TSInterfaceBody | TSTypeLiteral | TSIntersectionType | TSMappedType>): 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 _chunkZZPAR7YFjs = require('./chunk-ZZPAR7YF.js'); | ||
var _chunkIVMHKMYKjs = require('./chunk-IVMHKMYK.js'); | ||
@@ -37,3 +37,3 @@ | ||
exports.exportsSymbol = _chunkZZPAR7YFjs.exportsSymbol; exports.getTSFile = _chunkZZPAR7YFjs.getTSFile; exports.isTSDeclaration = _chunkZZPAR7YFjs.isTSDeclaration; exports.isTSExports = _chunkZZPAR7YFjs.isTSExports; exports.mergeTSProperties = _chunkZZPAR7YFjs.mergeTSProperties; exports.resolveTSEntityName = _chunkZZPAR7YFjs.resolveTSEntityName; exports.resolveTSExports = _chunkZZPAR7YFjs.resolveTSExports; exports.resolveTSFileId = _chunkZZPAR7YFjs.resolveTSFileId; exports.resolveTSFileIdNode = _chunkZZPAR7YFjs.resolveTSFileIdNode; exports.resolveTSProperties = _chunkZZPAR7YFjs.resolveTSProperties; exports.resolveTSReferencedType = _chunkZZPAR7YFjs.resolveTSReferencedType; exports.resolveTSScope = _chunkZZPAR7YFjs.resolveTSScope; exports.resolveTypeElements = _chunkZZPAR7YFjs.resolveTypeElements; exports.setResolveTSFileIdImpl = _chunkZZPAR7YFjs.setResolveTSFileIdImpl; exports.tsFileCache = _chunkZZPAR7YFjs.tsFileCache; exports.tsFileExportsCache = _chunkZZPAR7YFjs.tsFileExportsCache; | ||
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.default = module.exports; |
{ | ||
"name": "@vue-macros/api", | ||
"version": "0.4.10", | ||
"version": "0.5.0", | ||
"packageManager": "pnpm@7.30.0", | ||
@@ -5,0 +5,0 @@ "description": "General API for Vue Macros.", |
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
119725
3539