Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
60
Frontend-Learner/node_modules/@nuxt/telemetry/dist/module.d.cts
generated
vendored
Normal file
60
Frontend-Learner/node_modules/@nuxt/telemetry/dist/module.d.cts
generated
vendored
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
import * as _nuxt_schema from '@nuxt/schema';
|
||||
import { Nuxt } from '@nuxt/schema';
|
||||
|
||||
declare class Telemetry {
|
||||
nuxt: Nuxt;
|
||||
options: Required<TelemetryOptions>;
|
||||
storage: any;
|
||||
_contextPromise?: Promise<Context>;
|
||||
events: Promise<EventFactoryResult<any>>[];
|
||||
eventFactories: Record<string, EventFactory<any>>;
|
||||
constructor(nuxt: Nuxt, options: Required<TelemetryOptions>);
|
||||
getContext(): Promise<Context>;
|
||||
createEvent(name: string, payload?: object): undefined | Promise<any>;
|
||||
_invokeEvent(name: string, eventFactory: EventFactory<any>, payload?: object): Promise<any>;
|
||||
getPublicContext(): Promise<Record<string, any>>;
|
||||
sendEvents(debug?: boolean): Promise<void>;
|
||||
}
|
||||
|
||||
interface TelemetryOptions {
|
||||
debug: boolean;
|
||||
endpoint: string;
|
||||
seed: string;
|
||||
consent?: number;
|
||||
enabled: boolean;
|
||||
}
|
||||
interface Context {
|
||||
nuxt: Nuxt;
|
||||
cli: string;
|
||||
seed: string;
|
||||
projectHash: string;
|
||||
projectSession: string;
|
||||
nuxtVersion: string;
|
||||
nuxtMajorVersion: 2 | 3;
|
||||
isEdge: boolean;
|
||||
nodeVersion: string;
|
||||
os: string;
|
||||
git?: {
|
||||
url: string;
|
||||
};
|
||||
environment: string | null;
|
||||
packageManager: string;
|
||||
concent: number;
|
||||
}
|
||||
interface Event {
|
||||
name: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
type EventFactoryResult<T> = Promise<T> | T | Promise<T>[] | T[];
|
||||
type EventFactory<T extends Event> = (context: Context, payload: any) => EventFactoryResult<T>;
|
||||
declare module '@nuxt/schema' {
|
||||
interface NuxtHooks {
|
||||
'telemetry:setup': (telemetry: Telemetry) => void;
|
||||
}
|
||||
}
|
||||
|
||||
type ModuleOptions = boolean | TelemetryOptions;
|
||||
declare const _default: _nuxt_schema.NuxtModule<TelemetryOptions, TelemetryOptions, false>;
|
||||
|
||||
export = _default;
|
||||
export type { ModuleOptions };
|
||||
Loading…
Add table
Add a link
Reference in a new issue