Skip to main content
Very Popular
Go to Latest
class RefreshTransformer
import { RefreshTransformer } from "https://deno.land/x/aleph@v0.1.7/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