Skip to content

Commit 39c2efd

Browse files
authored
test: cover strict TS options for styled (#1464)
1 parent ab11ebb commit 39c2efd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/react/__dtslint__/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as React from 'react';
44

55
import { css } from '@linaria/core';
66

7-
import { styled } from '../src';
7+
import { styled } from '..';
88

99
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1010
function isExtends<C, T>(arg1?: C, arg2?: T): C extends T ? 'extends' : never {

packages/react/__dtslint__/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"noImplicitThis": true,
99
"strictNullChecks": true,
1010
"strictFunctionTypes": true,
11+
"noUncheckedIndexedAccess": true,
12+
"noPropertyAccessFromIndexSignature": true,
1113
"noEmit": true,
1214

1315
"baseUrl": "./"

0 commit comments

Comments
 (0)