From c84973ce3766607fe6af23f3e3bf7bfd65aaaad3 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 7 Jan 2023 08:30:54 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 25 ++++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index be4a449..745d62a 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@designestate/fontloader', - version: '1.0.2', + version: '1.0.3', description: 'a fontloader for managing font loading from A to Z' } diff --git a/ts/index.ts b/ts/index.ts index 9d297fa..7670965 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,3 +1,26 @@ import * as plugins from './fontloader.plugins.js'; -export let demoExport = 'Hi there! :) This is an exported string'; +export type TFonts = 'Inter' | 'MaterialIcons' | 'Courier Prime'; + +let fontsloaderSingleton: FontLoader; +export class FontLoader { + public static ensureFonts(fontsArrayArg: TFonts) { + if (!fontsloaderSingleton) { + fontsloaderSingleton = new FontLoader(); + } + } + + /** + * loads the Inter font + */ + public loadInter() { + + } + + /** + * load material icons + */ + public loadMaterialIcon() { + + } +} \ No newline at end of file