Skip to content

Commit 8145b87

Browse files
committed
Change to use type import of JsonServiceClient
1 parent ddf1774 commit 8145b87

File tree

8 files changed

+19
-8
lines changed

8 files changed

+19
-8
lines changed

src/components/AutoQueryGrid.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,11 @@
174174
</template>
175175

176176
<script setup lang="ts">
177+
import type { JsonServiceClient } from '@servicestack/client'
177178
import type { ApiPrefs, ApiResponse, Column, ColumnSettings, MetadataPropertyType, GridAllowOptions, GridShowOptions } from '@/types'
178179
import type { AutoQueryGridProps, AutoQueryGridEmits } from '@/components/types'
179180
import { computed, inject, nextTick, onMounted, ref, useSlots, getCurrentInstance } from 'vue'
180-
import { ApiResult, appendQueryString, combinePaths, delaySet, JsonServiceClient, leftPart, mapGet, queryString, rightPart } from '@servicestack/client'
181+
import { ApiResult, appendQueryString, combinePaths, delaySet, leftPart, mapGet, queryString, rightPart } from '@servicestack/client'
181182
import { Apis, createDto, getPrimaryKey, isComplexProp, typeProperties, useMetadata } from '@/use/metadata'
182183
import { a, grid } from './css'
183184
import { asOptions, asStrings, copyText, getTypeName, parseJson, pushState } from '@/use/utils'

src/components/LookupInput.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
</template>
3737

3838
<script setup lang="ts">
39+
import type { JsonServiceClient } from '@servicestack/client'
3940
import type { ApiState, RefInfo, ModalProvider } from '@/types'
4041
import type { LookupInputProps, LookupInputEmits } from '@/components/types'
4142
import { Sole, useConfig } from '@/use/config'
4243
import { getPrimaryKey, LookupValues, typeOf, typeProperties, useMetadata } from '@/use/metadata'
4344
import { isComplexType, scopedExpr } from '@/use/utils'
44-
import { errorResponse, humanize, JsonServiceClient, mapGet, toPascalCase } from '@servicestack/client'
45+
import { errorResponse, humanize, mapGet, toPascalCase } from '@servicestack/client'
4546
import { computed, inject, onMounted, ref, unref } from 'vue'
4647
4748
const { config } = useConfig()

src/components/ModalLookup.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,11 @@
125125
</template>
126126

127127
<script setup lang="ts">
128+
import type { JsonServiceClient } from '@servicestack/client'
128129
import type { ApiPrefs, ApiResponse, Column, ColumnSettings, MetadataPropertyType } from '@/types'
129130
import type { ModalLookupProps, ModalLookupEmits } from '@/components/types'
130131
import { computed, getCurrentInstance, inject, nextTick, onMounted, ref, useSlots } from 'vue'
131-
import { ApiResult, delaySet, humanize, JsonServiceClient, mapGet } from '@servicestack/client'
132+
import { ApiResult, delaySet, humanize, mapGet } from '@servicestack/client'
132133
import { parseJson, getTypeName } from '@/use/utils'
133134
import { useConfig } from '@/use/config'
134135
import { Apis, createDto, Crud, getPrimaryKey, typeOf, typeProperties, useMetadata } from '@/use/metadata'

src/components/SignIn.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@
5757
</template>
5858

5959
<script setup lang="ts">
60+
import type { JsonServiceClient } from '@servicestack/client'
6061
import type { AppMetadata, AuthenticateResponse, MetaAuthProvider } from '@/types'
6162
import type { SignInProps, SignInEmits } from '@/components/types'
6263
import { computed, inject, onMounted, ref } from 'vue'
63-
import { ApiResult, each, JsonServiceClient, toPascalCase } from '@servicestack/client'
64+
import { ApiResult, each, toPascalCase } from '@servicestack/client'
6465
import { useAuth } from '@/use/auth'
6566
import { useClient } from '@/use/client'
6667
import { useMetadata } from '@/use/metadata'

src/components/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
// Vue Component Type Definitions
22
import type { Component, DefineComponent, EmitsOptions, StyleValue } from 'vue'
3-
import type { ResponseStatus, MetadataOperationType, InputProp, TableStyleOptions, Breakpoint, ApiRequest, MetadataType, InputInfo, AutoQueryConvention, ApiPrefs, GridAllowOptions, GridShowOptions, MetadataPropertyType, ApiResponseType, UploadedFile, ImageInfo, MarkdownInputOptions, RefInfo, FormatInfo, Column, AuthenticateResponse } from '../types'
43
import type { Apis } from '../use/metadata'
4+
import type {
5+
ResponseStatus, MetadataOperationType, InputProp, TableStyleOptions, Breakpoint, ApiRequest, MetadataType,
6+
InputInfo, AutoQueryConvention, ApiPrefs, GridAllowOptions, GridShowOptions, MetadataPropertyType,
7+
ApiResponseType, UploadedFile, ImageInfo, MarkdownInputOptions, RefInfo, FormatInfo, Column, AuthenticateResponse
8+
} from '@/types'
59

610
// Input Components
711
export interface TextInputProps {

src/demo/App.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,9 +689,10 @@
689689
</template>
690690

691691
<script setup lang="ts">
692+
import type { JsonServiceClient } from '@servicestack/client'
692693
import type { ApiResponse, InputInfo } from '../types'
693694
import { inject, onMounted, ref } from 'vue'
694-
import { lastRightPart, JsonServiceClient } from '@servicestack/client'
695+
import { lastRightPart } from '@servicestack/client'
695696
import { useConfig, useMetadata, useFiles, useUtils, useFormatters, useAuth } from '../'
696697
import { Icons, allContacts, bookings as bookingObject, forecasts, tracks, allTypesJson, players } from './data'
697698
import { AllTypes, Authenticate,

src/use/metadata.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { type AppMetadata, type MetadataType, type MetadataPropertyType, type MetadataOperationType, type InputInfo, type KeyValuePair, type MetadataTypes, type AutoQueryConvention, type Filter, type RefInfo, type InputProp, type AppInfo, type MetadataTypeName, type AutoQueryApis, MetadataApp } from "@/types"
2-
import { toDate, toCamelCase, chop, map, mapGet, toDateTime, leftPart, JsonServiceClient } from '@servicestack/client'
2+
import type { JsonServiceClient } from '@servicestack/client'
3+
import { toDate, toCamelCase, chop, map, mapGet, toDateTime, leftPart } from '@servicestack/client'
34
import { computed, inject } from 'vue'
45
import { Sole } from './config'
56
import { dateInputFormat, scopedExpr } from './utils'

src/use/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { Ref } from "vue"
2+
import type { JsonServiceClient } from "@servicestack/client"
23
import { isRef, nextTick, unref } from "vue"
34
import type { ApiRequest, IReturn, TransitionRules } from "@/types"
4-
import { ApiResult, appendQueryString, enc, JsonServiceClient, lastLeftPart, nameOf, omit, setQueryString, toDate, toTime } from "@servicestack/client"
5+
import { ApiResult, appendQueryString, enc, lastLeftPart, nameOf, omit, setQueryString, toDate, toTime } from "@servicestack/client"
56
import { assetsPathResolver } from "./config"
67
import { Sole } from "./config"
78

0 commit comments

Comments
 (0)