Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class RefreshTransformer
import { RefreshTransformer } from "https://deno.land/x/aleph@v0.2.2/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