mirror of https://github.com/vuejs/core.git
chore: update side effect annotations to use standardized format (#13839)
This commit is contained in:
parent
842a392ae5
commit
26bce3dc6c
|
@ -43,7 +43,7 @@ export interface AsyncComponentOptions<T = any> {
|
||||||
export const isAsyncWrapper = (i: ComponentInternalInstance | VNode): boolean =>
|
export const isAsyncWrapper = (i: ComponentInternalInstance | VNode): boolean =>
|
||||||
!!(i.type as ComponentOptions).__asyncLoader
|
!!(i.type as ComponentOptions).__asyncLoader
|
||||||
|
|
||||||
/*! #__NO_SIDE_EFFECTS__ */
|
/*@__NO_SIDE_EFFECTS__*/
|
||||||
export function defineAsyncComponent<
|
export function defineAsyncComponent<
|
||||||
T extends Component = { new (): ComponentPublicInstance },
|
T extends Component = { new (): ComponentPublicInstance },
|
||||||
>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T {
|
>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T {
|
||||||
|
|
|
@ -301,7 +301,7 @@ export function defineComponent<
|
||||||
>
|
>
|
||||||
|
|
||||||
// implementation, close to no-op
|
// implementation, close to no-op
|
||||||
/*! #__NO_SIDE_EFFECTS__ */
|
/*@__NO_SIDE_EFFECTS__*/
|
||||||
export function defineComponent(
|
export function defineComponent(
|
||||||
options: unknown,
|
options: unknown,
|
||||||
extraOptions?: ComponentOptions,
|
extraOptions?: ComponentOptions,
|
||||||
|
|
|
@ -125,7 +125,7 @@ export const devtoolsComponentRemoved = (
|
||||||
|
|
||||||
type DevtoolsComponentHook = (component: ComponentInternalInstance) => void
|
type DevtoolsComponentHook = (component: ComponentInternalInstance) => void
|
||||||
|
|
||||||
/*! #__NO_SIDE_EFFECTS__ */
|
/*@__NO_SIDE_EFFECTS__*/
|
||||||
function createDevtoolsComponentHook(
|
function createDevtoolsComponentHook(
|
||||||
hook: DevtoolsHooks,
|
hook: DevtoolsHooks,
|
||||||
): DevtoolsComponentHook {
|
): DevtoolsComponentHook {
|
||||||
|
|
|
@ -163,7 +163,7 @@ export function defineCustomElement<
|
||||||
T extends DefineComponent<infer P, any, any, any> ? P : unknown
|
T extends DefineComponent<infer P, any, any, any> ? P : unknown
|
||||||
>
|
>
|
||||||
|
|
||||||
/*! #__NO_SIDE_EFFECTS__ */
|
/*@__NO_SIDE_EFFECTS__*/
|
||||||
export function defineCustomElement(
|
export function defineCustomElement(
|
||||||
options: any,
|
options: any,
|
||||||
extraOptions?: ComponentOptions,
|
extraOptions?: ComponentOptions,
|
||||||
|
@ -184,7 +184,7 @@ export function defineCustomElement(
|
||||||
return VueCustomElement
|
return VueCustomElement
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! #__NO_SIDE_EFFECTS__ */
|
/*@__NO_SIDE_EFFECTS__*/
|
||||||
export const defineSSRCustomElement = ((
|
export const defineSSRCustomElement = ((
|
||||||
options: any,
|
options: any,
|
||||||
extraOptions?: ComponentOptions,
|
extraOptions?: ComponentOptions,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* So that rollup can tree-shake them if necessary.
|
* So that rollup can tree-shake them if necessary.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! #__NO_SIDE_EFFECTS__ */
|
/*@__NO_SIDE_EFFECTS__*/
|
||||||
export function makeMap(str: string): (key: string) => boolean {
|
export function makeMap(str: string): (key: string) => boolean {
|
||||||
const map = Object.create(null)
|
const map = Object.create(null)
|
||||||
for (const key of str.split(',')) map[key] = 1
|
for (const key of str.split(',')) map[key] = 1
|
||||||
|
|
Loading…
Reference in New Issue