auth

Main authentication module for my projects
git clone git://git.finwo.net/app/auth
Log | Files | Refs

types.ts (620B)


      1 export interface LayerSource {
      2   id: string;
      3   label: string;
      4   digest: string;
      5   url: string;
      6 }
      7 
      8 export interface TemplateManifest {
      9   api: number;
     10   base: LayerSource;
     11   overlays: LayerSource[];
     12 }
     13 
     14 export interface LoadedLayer {
     15   source: LayerSource;
     16   files: Map<string, Uint8Array>;
     17 }
     18 
     19 export interface LayerFile {
     20   path: string;
     21   layer: number;
     22   data: Uint8Array;
     23 }
     24 
     25 export interface TemplateSet {
     26   layers: LoadedLayer[];
     27   files: Map<string, LayerFile>;
     28   compositeDigest: string;
     29 }
     30 
     31 export type LogKind = 'cache' | 'network' | 'info' | 'error';
     32 
     33 export type LogFn = (kind: LogKind, message: string) => void;