Skip to content

Instantly share code, notes, and snippets.

import { CamelCase, Simplify } from 'type-fest'
declare const create: <B extends string>(blockName: B) => BlockBuilder<B>
interface BlockBuilder<R extends string, M extends ModifiersArray = [], E extends BuiltElem<any, any>[] = []> {
mod: {
<B extends AnyBlockBuilder, M extends string>(this: B, name: M): ExtendsBlockModifiers<B, M>
<B extends BlockBuilder<any, any>, M extends string, V extends string>(
this: B,
modName: M,