File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
packages/react-native/src Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import App from './App';
6
6
describe ( '<App />' , ( ) => {
7
7
it ( 'has 1 child' , ( ) => {
8
8
const tree = renderer . create ( < App /> ) . toJSON ( ) ;
9
- if ( ! Array . isArray ( tree ) && tree . children ) {
9
+ if ( ! Array . isArray ( tree ) && tree ? .children ) {
10
10
expect ( tree . children . length ) . toBe ( 1 ) ;
11
11
} else {
12
12
throw new Error ( 'App has no children' ) ;
Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"skipLibCheck" : true ,
4
4
"lib" : [" es6" ],
5
- "baseUrl" : " ./"
5
+ "baseUrl" : " ./" ,
6
+ "strict" : true
6
7
},
7
- "extends" : " expo/tsconfig.base"
8
+ "extends" : " expo/tsconfig.base" ,
9
+ "include" : [" ./.storybook/" , " ./.storybook-web/" , " ./*" ]
8
10
}
Original file line number Diff line number Diff line change @@ -10,19 +10,19 @@ import { PreviewWithSelection } from '@storybook/preview-api/dist/preview-web';
10
10
import { createBrowserChannel } from '@storybook/channels' ;
11
11
import { View } from './View' ;
12
12
import type { ReactRenderer } from '@storybook/react' ;
13
- import type { NormalizedStoriesSpecifier } from '@storybook/types' ;
13
+ import type { NormalizedStoriesSpecifier , StoryIndex } from '@storybook/types' ;
14
14
15
15
export function prepareStories ( {
16
16
storyEntries,
17
17
} : {
18
18
storyEntries : Array < NormalizedStoriesSpecifier & { req : any } > ;
19
19
} ) {
20
- let index = {
20
+ let index : StoryIndex = {
21
21
v : 4 ,
22
22
entries : { } ,
23
23
} ;
24
24
25
- let importMap = { } ;
25
+ let importMap : Record < string , any > = { } ;
26
26
27
27
const makeTitle = (
28
28
fileName : string ,
You can’t perform that action at this time.
0 commit comments