@solid-mediakit/auth-plugin
Version:
Package for easily creating server rpc functions in solid-start with goodies baked in
20 lines (19 loc) • 710 B
TypeScript
import type { AuthPluginOptions } from '.';
import * as babel from '@babel/core';
export declare const authLoc = "@solid-mediakit/auth";
export declare function createTransformAuth$(opts: AuthPluginOptions): ({ types: t, template: temp, }: {
types: typeof babel.types;
template: typeof babel.template;
}) => babel.PluginObj;
export declare function compileAuth(code: string, id: string, opts: AuthPluginOptions): Promise<{
code: string;
map: {
version: number;
sources: string[];
names: string[];
sourceRoot?: string | undefined;
sourcesContent?: string[] | undefined;
mappings: string;
file: string;
} | null | undefined;
} | null>;