Skip to content

Instantly share code, notes, and snippets.

@isimmons
isimmons / custom.d.ts
Created December 19, 2022 07:00
TS module declarations for css and images
// react specific css modules
declare module '*.module.css' {
const content: Record<string, string>;
export default content;
}
// react specific for direct svg import
declare module '*.svg' {
import React = require('react');
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>;
@isimmons
isimmons / markdown-import.md
Last active December 28, 2023 14:27
astro md import

This is a level 1 heading

This is level 2

I need to say something so here is a paragraph.

Learn Typescript

// let's see how pre formatted code turns out