Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit db22ebf

Browse files
author
Achim Schneider
committed
fix ts imports
1 parent bcaa0ca commit db22ebf

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

packages/ink-editor/src/api/compile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Common from '@paritytech/commontypes';
1+
import Common from '@paritytech/commontypes';
22

33
export type CompileApiRequest = Common.CompilationRequest;
44

packages/ink-editor/src/api/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Common from '@paritytech/commontypes';
1+
import Common from '@paritytech/commontypes';
22

33
export type FormattingApiRequest = Common.FormattingRequest;
44

packages/ink-editor/src/api/gists/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Common from '@paritytech/commontypes';
1+
import Common from '@paritytech/commontypes';
22

33
// -------------------------------------------------------------------------------------------------
44
// Types

packages/ink-editor/src/api/gists/load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Common from '@paritytech/commontypes';
1+
import Common from '@paritytech/commontypes';
22

33
// -------------------------------------------------------------------------------------------------
44
// Types

packages/ink-editor/src/api/testing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Common from '@paritytech/commontypes';
1+
import Common from '@paritytech/commontypes';
22

33
export type TestingApiRequest = Common.TestingRequest;
44

packages/playground/__tests__/context/app/reducer.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CompilationResult } from '@paritytech/commontypes';
1+
import Common from '@paritytech/commontypes';
22
import { reducer, defaultState, CompileState, Action } from '~/context/app/reducer';
33

44
describe('Given the reducer is used to manage state', () => {
@@ -110,7 +110,7 @@ describe('Given the reducer is used to manage state', () => {
110110
test('When endpoint returns "OK" with "ERROR"', () => {
111111
// Given
112112
const type = 'SET_COMPILE_STATE';
113-
const compilationPayload: CompilationResult = {
113+
const compilationPayload: Common.CompilationResult = {
114114
type: 'ERROR',
115115
payload: {
116116
stdout: '',
@@ -137,7 +137,7 @@ describe('Given the reducer is used to manage state', () => {
137137
test('When endpoint returns "OK" with "SUCCESS"', () => {
138138
// Given
139139
const type = 'SET_COMPILE_STATE';
140-
const compilationPayload: CompilationResult = {
140+
const compilationPayload: Common.CompilationResult = {
141141
type: 'SUCCESS',
142142
payload: {
143143
wasm: [1, 2, 3],

packages/playground/__tests__/context/reducer.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CompilationResult } from '@paritytech/commontypes';
1+
import Common from '@paritytech/commontypes';
22
import { reducer, defaultState, CompileState, Action } from '~/context/app/reducer';
33

44
describe('Given the reducer is used to manage state', () => {
@@ -110,7 +110,7 @@ describe('Given the reducer is used to manage state', () => {
110110
test('When endpoint returns "OK" with "ERROR"', () => {
111111
// Given
112112
const type = 'SET_COMPILE_STATE';
113-
const compilationPayload: CompilationResult = {
113+
const compilationPayload: Common.CompilationResult = {
114114
type: 'ERROR',
115115
payload: {
116116
stdout: '',

packages/playground/src/app/Header/ShareSubmenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { gistCreate } from '~/context/side-effects/create-gist';
66
import { AppContext } from '~/context/app/';
77
import { MessageContext } from '~/context/messages/';
88
import { MessageState, MessageDispatch } from '~/context/messages/reducer';
9-
import { Gist, GistCreateResponse } from '@paritytech/commontypes';
9+
import Common from '@paritytech/commontypes';
1010
import { GistCreateApiResponse } from '@paritytech/ink-editor/api/gists';
1111
import qs from 'qs';
1212

1313
const ViewError = ({ message }: { message: string }) => <div>{message}</div>;
1414

15-
const ViewGist = ({ gist }: { gist?: Gist }) => (
15+
const ViewGist = ({ gist }: { gist?: Common.Gist }) => (
1616
<>
1717
<LabeledLink
1818
label="Link to Playground:"
@@ -31,7 +31,7 @@ const gitPlaygroundUrl = (id: string): string => {
3131
return `${window.location.origin}/?${qs.stringify({ id })}`;
3232
};
3333

34-
const GistCreateResponse = ({ response }: { response: GistCreateResponse }): ReactElement => {
34+
const GistCreateResponse = ({ response }: { response: Common.GistCreateResponse }): ReactElement => {
3535
switch (response.type) {
3636
case 'SUCCESS':
3737
return <ViewGist gist={response.payload} />;

0 commit comments

Comments
 (0)