1
0
Fork 0

worked on GarageApp stuff

This commit is contained in:
Techognito 2025-08-25 17:46:11 +02:00
parent 60aaf17af3
commit eb606572b0
51919 changed files with 2168177 additions and 18 deletions

View file

@ -0,0 +1,5 @@
import { RegisteredCache, EmotionCache, SerializedStyles } from "./types.js";
export declare function getRegisteredStyles(registered: RegisteredCache, registeredStyles: string[], classNames: string): string;
export declare const registerStyles: (cache: EmotionCache, serialized: SerializedStyles, isStringTag: boolean) => void;
export declare const insertStyles: (cache: EmotionCache, serialized: SerializedStyles, isStringTag: boolean) => string | undefined;
export * from "./types.js";

View file

@ -0,0 +1,17 @@
import type { StyleSheet } from '@emotion/sheet';
export type { StyleSheet };
export type RegisteredCache = Record<string, string | undefined>;
export type SerializedStyles = {
name: string;
styles: string;
next?: SerializedStyles;
};
export type EmotionCache = {
inserted: Record<string, string | true | undefined>;
registered: RegisteredCache;
sheet: StyleSheet;
key: string;
compat?: true;
nonce?: string;
insert: (selector: string, serialized: SerializedStyles, sheet: StyleSheet, shouldCache: boolean) => string | void;
};