yandex / reshadow

Markup and styles that feel right

Home Page:https://reshadow.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript typings for reshadow/macro

kodemi opened this issue · comments

Now typings works only with reshadow module:

import styled, { css } from "reshadow";

So reshadow/macro doesn't work with CRA Typescript app.

@kodemi my temporary solution: add declaration to project's *.d.ts. Example for CRA:

// src/react-app-env.d.ts
/// <reference types="react-scripts" />

declare module "reshadow/macro" {
  export * from "@reshadow/reshadow";
}