Skip to content

Commit 786f256

Browse files
committed
fix: create typeRoots for global types
Signed-off-by: Matt Krick <matt.krick@gmail.com>
1 parent 3041604 commit 786f256

File tree

18 files changed

+69
-165
lines changed

18 files changed

+69
-165
lines changed

packages/client/client.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {render} from 'react-dom'
22
import Root from './Root'
33
import './scrollIntoViewIfNeeded'
4-
import './types/modules.d'
54

65
render(<Root />, document.getElementById('root'))
76
if (__PRODUCTION__ && 'serviceWorker' in navigator) {

packages/client/polyfills.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import './types/modules.d'
2-
31
if (__PRODUCTION__) {
42
__webpack_public_path__ = window.__ACTION__.publicPath
53
}

packages/client/serviceWorker/modules.d.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/client/types/reactHTML4.d.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/client/types/shared.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/client/utils/relay/getGraphQLError.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
import type {PayloadError} from 'relay-runtime'
22

3-
declare module 'relay-runtime' {
4-
interface PayloadError extends Error {
5-
message: string
6-
locations?:
7-
| Array<{
8-
line: number
9-
column: number
10-
}>
11-
| undefined
12-
path?: Array<string | number>
13-
extensions?: {
14-
code?: string
15-
}
16-
}
17-
}
18-
193
const getServerError = (errors: ReadonlyArray<PayloadError> | null | undefined) =>
204
(errors && errors[0]) || undefined
215
const getPayloadError = (res: {[key: string]: any} | null) => {

packages/embedder/inferLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import franc from 'franc-min'
1+
import {franc} from 'franc-min'
22
import {type ISO6391, iso6393To1} from './iso6393To1'
33
import {URLRegex} from './regex'
44

packages/embedder/types/modules.d.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/embedder/types/shared.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/mattermost-plugin/types/modules.d.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)