mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [@types/styletron-engine-atomic] foundation for styletron-engine-atomic typings * fix: add TypeScript version * fix: linting + add cache types
21 lines
438 B
TypeScript
21 lines
438 B
TypeScript
import {
|
|
Client,
|
|
Server
|
|
} from 'styletron-engine-atomic';
|
|
|
|
const validOptions = {
|
|
prefix: 'test-prefix__'
|
|
};
|
|
|
|
const invalidOptions = {
|
|
hydrate: 'erroneous hydration'
|
|
};
|
|
|
|
new Client(validOptions);
|
|
new Client(invalidOptions); // $ExpectError
|
|
|
|
new Server({prefix: 1234}); // $ExpectError
|
|
const myServer = new Server(validOptions);
|
|
myServer.getCss(); // $ExpectType string
|
|
myServer.getStylesheetsHtml(); // $ExpectType string
|