This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
function buildQuery(table, modifiers) { | |
const query = modifiers.shift() | |
let amount; | |
if(query.name === 'select') { | |
amount = modifiers.shift(); | |
checkview: if(options.viewsEnabled) { | |
if(!query.arguments?.view) { | |
query.arguments.view = 'default' | |
break checkview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { writable } from 'svelte/store' | |
import type { Writable } from 'svelte/types/runtime/store' | |
// this is not the most effecient way to do things and might cause some errors with typescript, i might make a full class | |
type Typewind = { | |
init(): string, | |
beforeTransition(): void, | |
toggle: () => void, | |
enable: (dark: boolean) => void, |