reshadow icon indicating copy to clipboard operation
reshadow copied to clipboard

Typescript typings for reshadow/macro

Open kodemi opened this issue 4 years ago • 1 comments

Now typings works only with reshadow module:

import styled, { css } from "reshadow";

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

kodemi avatar Dec 04 '19 07:12 kodemi

@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";
}

Realetive avatar Jan 02 '21 00:01 Realetive