UNPKG

@cfcs/core

Version:

Write once, create framework components that supports React, Vue, Svelte, and more.

26 lines (25 loc) 694 B
/** * cfcs * Copyright (c) 2022-present NAVER Corp. * MIT license */ import { Ref } from "../core"; /** * @hidden */ export declare function findTarget<Target extends Element = Element>(target: string | Target | Ref<Target> | null): Target | null; /** * @description Sets the name of the class method to be exposed to the outside. * @category DOM * @return Property Decorator * @example * ```ts * import { withClassMethods } from "@cfcs/core"; * * class YourFrameworkComponent { * @withClassMethod(METHOD_NAMES) * inst = new YourComponent(); * } * ``` */ export declare function withClassMethods(methods: readonly string[]): (prototype: any, memberName: string) => void;