- Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
- Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
import { describe, expect, it } from 'vitest' | |
const canReconfigure = (from, to) => { | |
if (typeof from !== 'string') throw new Error('from is not a string') | |
if (typeof to !== 'string') throw new Error('from is not a string') | |
const hasSameLength = from.length === to.length | |
if (!hasSameLength) return false | |
const fromLetters = new Set(from) |
import styled from 'styled-components'; | |
import { media } from 'utils/mediaQuery'; | |
const Title = styled.h1` | |
font-size: 24px; | |
${media.medium` | |
font-size: 30px; | |
`} | |
${media.large` | |
font-size: 36px; |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0-modified | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |