calling loadTheme from a .ts file

155 views Asked by At

I one of my "office-ui-fabric-react" project, I am writing a utility class(common.ts) where I have a function to load theme for a page. This utility class will be included as part of the script tag in an html file as common.js.

I want to call loadTheme which is defined in \node_modules@uifabric\styling\lib\styles\node_modules@uifabric\styling\lib\styles\theme.d.ts

I tried import { loadTheme } from "office-ui-fabric-react" and gave me a generic build error.

How do I import APIs defined in "office-ui-fabric-react" from a .ts file?

0

There are 0 answers