File tree Expand file tree Collapse file tree 7 files changed +62
-58
lines changed Expand file tree Collapse file tree 7 files changed +62
-58
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"files.autoSave" : " onFocusChange" ,
3
- "editor.formatOnSave" : true
3
+ "editor.formatOnSave" : true ,
4
+ "typescript.tsdk" : " node_modules/typescript/lib"
4
5
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const Schedule = (props: { data: SpeakerModel[] }) => {
9
9
width : '100' ,
10
10
height : '100' ,
11
11
layout : 'responsive' ,
12
- }
12
+ } as const
13
13
14
14
return (
15
15
< section className = "schedule ngparty-conf-section" >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const Faq = () => {
44
44
< ul className = "faq-content" >
45
45
{ DATA . map ( ( item ) => {
46
46
return (
47
- < li className = "faq-content-item" >
47
+ < li className = "faq-content-item" key = { item . question } >
48
48
< FaqItem { ...item } />
49
49
</ li >
50
50
)
Original file line number Diff line number Diff line change 1
- import React from 'react'
2
- declare module 'react' {
3
- interface DOMAttributes < T > {
4
- on ?: string
5
- }
6
- }
7
-
8
- declare global {
9
- declare namespace JSX {
10
- interface AmpLightBox {
11
- id : string
12
- layout : 'nodisplay'
13
- }
14
- interface AmpSidebar {
15
- id : string
16
- className ?: string
17
- layout : 'nodisplay'
18
- side : 'left' | 'right'
19
- }
20
- interface AmpImg {
21
- alt ?: string
22
- src ?: string
23
- width ?: string
24
- height ?: string
25
- layout ?:
26
- | 'responsive'
27
- | 'fixed'
28
- | 'fill'
29
- | 'fixed-height'
30
- | 'flex-item'
31
- | 'container'
32
- | 'nodisplay'
33
- | 'intrinsic'
34
- className ?: string
35
- }
36
-
37
- interface AmpIframe {
38
- width ?: string
39
- height ?: string
40
- sandbox ?: string
41
- layout ?: string
42
- frameborder ?: string
43
- src ?: string
44
- className ?: string
45
- children ?: React . ReactNode
46
- }
47
- interface AmpAnalytics { }
48
-
49
- interface IntrinsicElements {
50
- 'amp-img' : AmpImg
51
- 'amp-iframe' : AmpIframe
52
- 'amp-analytics' : AmpAnalytics
53
- 'amp-sidebar' : AmpSidebar
54
- 'amp-lightbox' : AmpLightBox
55
- }
1
+ declare namespace JSX {
2
+ interface IntrinsicElements {
3
+ 'amp-img' : AMP . AmpImg
4
+ 'amp-iframe' : AMP . AmpIframe
5
+ 'amp-analytics' : AMP . AmpAnalytics
6
+ 'amp-sidebar' : AMP . AmpSidebar
7
+ 'amp-lightbox' : AMP . AmpLightBox
56
8
}
57
9
}
58
10
Original file line number Diff line number Diff line change 23
23
],
24
24
"include" : [
25
25
" next-env.d.ts" ,
26
+ " typings" ,
26
27
" **/*.ts" ,
27
28
" **/*.tsx"
28
29
]
Original file line number Diff line number Diff line change
1
+ declare namespace AMP {
2
+ interface AmpLightBox {
3
+ id : string
4
+ layout : 'nodisplay'
5
+ children ?: React . ReactNode
6
+ }
7
+ interface AmpSidebar {
8
+ id : string
9
+ className ?: string
10
+ layout : 'nodisplay'
11
+ side : 'left' | 'right'
12
+ children ?: React . ReactNode
13
+ }
14
+ interface AmpImg {
15
+ alt ?: string
16
+ src ?: string
17
+ width ?: string
18
+ height ?: string
19
+ layout ?:
20
+ | 'responsive'
21
+ | 'fixed'
22
+ | 'fill'
23
+ | 'fixed-height'
24
+ | 'flex-item'
25
+ | 'container'
26
+ | 'nodisplay'
27
+ | 'intrinsic'
28
+ className ?: string
29
+ children ?: React . ReactNode
30
+ }
31
+
32
+ interface AmpIframe {
33
+ width ?: string
34
+ height ?: string
35
+ sandbox ?: string
36
+ layout ?: string
37
+ frameborder ?: string
38
+ src ?: string
39
+ className ?: string
40
+ children ?: React . ReactNode
41
+ }
42
+ interface AmpAnalytics { }
43
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ declare module 'react' {
4
+ interface DOMAttributes < T > {
5
+ on ?: string
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments