Very Popular
Go to Latest
class RefreshTransformer
import { RefreshTransformer } from "https://dotland.deno.dev/x/aleph@v0.1.8/tsc/transform-react-refresh.ts";

Constructors

new
RefreshTransformer(sf: ts.SourceFile, options?: Record<string, any>)

Methods

private
_getHookCallSignature(ctx: ts.CallExpression)
private
_getHookCallsSignature(fnNode: ts.FunctionDeclaration | ts.FunctionExpression | ts.ArrowFunction)
private
_sign(
fnNode: TSFunctionLike,
fnName: string,
sigId: ts.Identifier,
key: string,
forceReset: boolean,
customHooks: string[],
)

Static Properties

refreshReg: string
refreshSig: string