Skip to content

api-render-vue / defineApiRender

Function: defineApiRender()

defineApiRender(id, options)

ts
function defineApiRender<D, P>(id, options): DefineApiRenderResultType<P>

定义 api 项

Type Parameters

Type Parameter
D extends string
P extends ApiRenderOptionsType

Parameters

ParameterTypeDescription
idD分包 ID
optionsPapi 项

Returns

DefineApiRenderResultType<P>

Defined in

src/options/ApiRenderOptions.ts:126

defineApiRender(options)

ts
function defineApiRender<P>(options): DefineApiRenderResultType<P>

定义 api 项

Type Parameters

Type Parameter
P extends ApiRenderOptionsType

Parameters

ParameterTypeDescription
optionsPapi 项

Returns

DefineApiRenderResultType<P>

Defined in

src/options/ApiRenderOptions.ts:131