Skip to content

Instantly share code, notes, and snippets.

View hipstersmoothie's full-sized avatar
🎧
Ignoring the real world

Andrew Lisowski hipstersmoothie

🎧
Ignoring the real world
View GitHub Profile
@hipstersmoothie
hipstersmoothie / Grid.stories.tsx
Last active March 27, 2022 07:46
Grid Template Component
import * as React from 'react';
export default {
title: 'Components/Grid',
};
type FilterString<S extends string, T extends string> = S extends T ? never : S;
type Split<S extends string, D extends string> = string extends S
? string[]
import { Box as BoxComponent } from "react-polymorphic-box";
declare type PropsOf<
E extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>
> = JSX.LibraryManagedAttributes<E, React.ComponentPropsWithoutRef<E>>;
export declare type RefOf<
E extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>
> = JSX.LibraryManagedAttributes<E, React.ComponentPropsWithRef<E>>["ref"];
const ts = require("typescript");
const vfs = require("@typescript/vfs");
const compilerOptions = {
strict: true,
target: ts.ScriptTarget.ES2015,
typeRoots: [],
lib: ["es5"],
skipDefaultLibCheck: true,
skipLibCheck: true,

We are excited to announce the release of auto 8.0.0! This release brings a new command next, a new use for shipit, more powerful label configuration, and more.

If you are unfamiliar, auto is a CLI tool which helps you version your code and automate any part of your release pipeline. auto's main use is for automating your versioning with semantic versioning and GitHub pull request labels. It handles determining the next version, creating changelogs, publishing to package managers, publishing GitHub Releases, and so much more through plugins.

If you aren't already using auto you can either install it through npm:

type Never<T> = { [P in keyof T]?: never };
interface ControlledProps {
open: boolean;
toggle: () => void;
}
interface UnControlledProps {
defaultOpen: boolean;
}
{
"$id": "asset_action",
"title": "Action",
"properties": {
"type": {
"const": "action"
},
"label": {
"$ref": "text_assets"
}