Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
index.d.ts215 linesDownload Raw Back to svelte2tsx
1import ts from 'typescript';2 3export interface SvelteCompiledToTsx {4    code: string;5    map: import("magic-string").SourceMap;6    exportedNames: IExportedNames;7    /**8     * @deprecated Use TypeScript's `TypeChecker` to get the type information instead. This only covers literal typings.9     */10    events: ComponentEvents;11}12 13export interface IExportedNames {14    has(name: string): boolean;15}16 17/**18 * @deprecated Use TypeScript's `TypeChecker` to get the type information instead. This only covers literal typings.19 */20export interface ComponentEvents {21    getAll(): { name: string; type: string; doc?: string }[];22}23 24export function svelte2tsx(25    svelte: string,26    options?: {27        /**28         * Path of the file29         */30        filename?: string;31        /**32         * If the given file uses TypeScript inside script.33         * This cannot be inferred from `svelte2tsx` by looking34         * at the attributes of the script tag because the35         * user may have set a default-language through36         * `svelte-preprocess`.37         */38        isTsFile?: boolean;39        /**40         * Whether to try emitting result when there's a syntax error in the template41         */42        emitOnTemplateError?: boolean;43        /**44         * The namespace option from svelte config45         * see https://svelte.dev/docs#svelte_compile for more info46         */47        namespace?: string;48        /**49         * When setting this to 'dts', all ts/js code and the template code will be thrown out.50         * Only the `code` property will be set on the returned element.51         * Use this as an intermediate step to generate type definitions from a component.52         * It is expected to pass the result to TypeScript which should handle emitting the d.ts files.53         * The shims need to be provided by the user ambient-style,54         * for example through `filenames.push(require.resolve('svelte2tsx/svelte-shims.d.ts'))`.55         * If you pass 'ts', it uses the regular Svelte->TS/JS transformation.56         * 57         * @default 'ts'58         */59        mode?: 'ts' | 'dts',60        /**61         * Tells svelte2tsx from which namespace some specific functions to use.62         * 63         * Example: 'svelteHTML' -> svelteHTML.createElement<..>(..)64         * 65         * A namespace needs to implement the following functions:66         * - `createElement(str: string, validAttributes: ..): Element`67         * - `mapElementTag<Key extends keyof YourElements>(str: Key): YourElements[Key]`68         * 69         * @default 'svelteHTML'70         */71        typingsNamespace?: string;72        /**73         * The accessor option from svelte config. 74         * Would be overridden by the same config in the svelte:option element if exist75         * see https://svelte.dev/docs#svelte_compile for more info76         */77        accessors?: boolean78        /**79         * The Svelte parser to use. Defaults to the one bundled with `svelte2tsx`.80         */81        parse?: typeof import('svelte/compiler').parse;82        /**83         * The VERSION from 'svelte/compiler'. Defaults to the one bundled with `svelte2tsx`.84         * Transpiled output may vary between versions.85         */86        version?: string;87        /**88         * If true, emits JSDoc annotations for types in JS files instead of TypeScript syntax.89         * This is useful for svelte-check's incremental mode where the output needs to be90         * valid JS that tsc can process without errors.91         */92        emitJsDoc?: boolean;93        /**94         * Rewrites relative imports that resolve outside the workspace so they stay valid95         * from the generated file location.96         */97        rewriteExternalImports?: InternalHelpers.RewriteExternalImportsConfig;98    }99): SvelteCompiledToTsx100 101export interface EmitDtsConfig {102    /**103     * Where to output the declaration files104     */105    declarationDir: string;106    /**107     * Path to `svelte-shims.d.ts` of `svelte2tsx`.108     * Example: `require.resolve('svelte2tsx/svelte-shims.d.ts')`109     * 110     * If a path is given that points to `svelte-shims-v4.d.ts`,111     * the `SvelteComponent` import is used instead of112     * `SvelteComponentTyped` which is deprecated in Svelte v4.113     */114    svelteShimsPath: string;115    /**116     * If you want to emit types only for part of your project,117     * then set this to the folder for which the types should be emitted.118     * Most of the time you don't need this. For SvelteKit, this is for example119     * set to `src/lib` by default.120     */121    libRoot?: string;122    /**123     * Name of your tsconfig file, if it's not the standard `tsconfig.json` or `jsconfig.json` 124     */125    tsconfig?: string;126}127 128// to make typo fix non-breaking, continue to export the old name but mark it as deprecated129/**@deprecated*/130export interface EmitDtsConig extends EmitDtsConfig {}131 132/**133 * Searches for a jsconfig or tsconfig starting at `root` and emits d.ts files134 * into `declarationDir` using the ambient file from `svelteShimsPath`.135 * Note: Handwritten `d.ts` files are not copied over; TypeScript does not136 * touch these files.137 */138export function emitDts(config: EmitDtsConfig): Promise<void>;139 140 141/**142 * ## Internal, do not use! This is subject to change at any time.143 *144 * Implementation notice: If one of the methods use a TypeScript function which is not from the145 * static top level `ts` namespace, it must be passed as a parameter.146 */147export const internalHelpers: {148    get_global_types: (149        tsSystem: ts.System,150        isSvelte3: boolean,151        sveltePath: string,152        typesPath: string,153        hiddenFolderPath?: string,154    ) => string[],155    isKitFile: (156        fileName: string,157        options: InternalHelpers.KitFilesSettings158    ) => boolean;159    isKitRouteFile: (basename: string) => boolean,160    isHooksFile: (161        fileName: string,162        basename: string,163        hooksPath: string164    ) => boolean,165    isParamsFile: (fileName: string, basename: string, paramsPath: string) =>boolean,166    upsertKitFile: (167        _ts: typeof ts,168        fileName: string,169        kitFilesSettings: InternalHelpers.KitFilesSettings,170        getSource: () => ts.SourceFile | undefined,171        surround?: (code: string) => string,172        rewriteExternalImports?: InternalHelpers.RewriteExternalImportsConfig173    ) => { text: string; addedCode: InternalHelpers.AddedCode[] } | undefined,174    toVirtualPos: (pos: number, addedCode: InternalHelpers.AddedCode[]) => number,175    toOriginalPos: (pos: number, addedCode: InternalHelpers.AddedCode[]) => {pos: number; inGenerated: boolean},176    findExports: (_ts: typeof ts, source: ts.SourceFile, isTsFile: boolean) => Map<177        string,178        | {179            type: 'function';180            node: ts.FunctionDeclaration | ts.ArrowFunction | ts.FunctionExpression;181            hasTypeDefinition: boolean;182        }183        | {184            type: 'var';185            node: ts.VariableDeclaration;186            hasTypeDefinition: boolean;187        }188    >,189	renderName: string190};191 192/**193 * ## Internal, do not use! This is subject to change at any time.194 */195export namespace InternalHelpers {196    export interface AddedCode {197        generatedPos: number;198        originalPos: number;199        length: number;200        total: number;201        inserted: string;202    }203 204    export interface KitFilesSettings {205        serverHooksPath: string;206        clientHooksPath: string;207        universalHooksPath: string;208        paramsPath: string;209    }210 211    export interface RewriteExternalImportsConfig {212        workspacePath: string;213        generatedPath: string;214    }215}
Brunobkr/llama.cpp_AlgMor24_github · Team Ai