Skip to content

Commit

Permalink
Merge pull request #479 from uploadcare/chore/fix-docs
Browse files Browse the repository at this point in the history
chore: fix typedoc
  • Loading branch information
nd0ut authored Apr 25, 2023
2 parents 9d23846 + 6ce4a4a commit c3f5c7f
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 40 deletions.
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"ts-jest": "29.0.5",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"typedoc": "^0.23.28",
"typedoc": "^0.24.6",
"typescript": "^5.0.2"
}
}
1 change: 1 addition & 0 deletions packages/api-client-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export { ContentInfo } from './types/ContentInfo'
export { ImageInfo } from './types/ImageInfo'
export { Metadata } from './types/Metadata'
export { VideoInfo } from './types/VideoInfo'
export { StoreValue } from './types/StoreValue'
export { onCancel } from './onCancel'
export { CancelError } from './CancelError'
export { poll } from './poll'
1 change: 1 addition & 0 deletions packages/api-client-utils/src/types/StoreValue.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type StoreValue = 'auto' | boolean
2 changes: 1 addition & 1 deletion packages/rest-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export { Problems } from './types/Problems'
export { ServerErrorResponse } from './types/ServerErrorResponse'
export { Webhook } from './types/Webhook'
export { WebhookEvent } from './types/WebhookEvent'
export { StoreValue } from './types/StoreValue'
export { StoreValue } from '@uploadcare/api-client-utils'
export { Paginatable } from './types/Paginatable'
export { Md5Function } from './lib/md5/Md5Function'
export { ConversionOptions } from './types/ConversionOptions'
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-client/src/tools/storeValueToString.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StoreValue } from '../types/StoreValue'
import { StoreValue } from '@uploadcare/api-client-utils'
import { RestClientError } from './RestClientError'

export const storeValueToString = (store?: StoreValue): string | undefined => {
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-client/src/types/ConversionOptions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ConversionType } from './ConversionType'
import { StoreValue } from './StoreValue'
import { StoreValue } from '@uploadcare/api-client-utils'
import { ValueOf } from './ValueOf'

export type ConversionOptions<T extends ValueOf<typeof ConversionType>> = {
Expand Down
1 change: 0 additions & 1 deletion packages/rest-client/src/types/StoreValue.ts

This file was deleted.

5 changes: 3 additions & 2 deletions packages/upload-client/src/api/base.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {
camelizeKeys,
CustomUserAgent,
Metadata
Metadata,
StoreValue
} from '@uploadcare/api-client-utils'
import { defaultSettings } from '../defaultSettings'
import request from '../request/request.node'
Expand All @@ -16,7 +17,7 @@ import { FailedResponse } from '../request/types'
import { getContentType } from '../tools/getContentType'
import { getFileName } from '../tools/getFileName'
import { getStoreValue } from '../tools/getStoreValue'
import { StoreValue, SupportedFileInput } from '../types'
import { SupportedFileInput } from '../types'
import { ProgressCallback, Uuid } from './types'

export type BaseResponse = {
Expand Down
4 changes: 2 additions & 2 deletions packages/upload-client/src/api/fromUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { FailedResponse } from '../request/types'
import {
CustomUserAgent,
camelizeKeys,
Metadata
Metadata,
StoreValue
} from '@uploadcare/api-client-utils'

import request from '../request/request.node'
Expand All @@ -14,7 +15,6 @@ import { getUserAgent } from '../tools/getUserAgent'
import { UploadClientError } from '../tools/errors'
import { retryIfFailed } from '../tools/retryIfFailed'
import { getStoreValue } from '../tools/getStoreValue'
import { StoreValue } from '../types'

export enum TypeEnum {
Token = 'token',
Expand Down
4 changes: 2 additions & 2 deletions packages/upload-client/src/api/multipartStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { Uuid } from './types'
import {
CustomUserAgent,
camelizeKeys,
Metadata
Metadata,
StoreValue
} from '@uploadcare/api-client-utils'

import request from '../request/request.node'
Expand All @@ -18,7 +19,6 @@ import { getUserAgent } from '../tools/getUserAgent'
import { retryIfFailed } from '../tools/retryIfFailed'
import { UploadClientError } from '../tools/errors'
import { getStoreValue } from '../tools/getStoreValue'
import { StoreValue } from '../types'

export type MultipartStartOptions = {
publicKey: string
Expand Down
3 changes: 2 additions & 1 deletion packages/upload-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export { Settings, SupportedFileInput as SupportedFileInput } from './types'
export {
NodeFile as NodeFile,
BrowserFile as BrowserFile,
ReactNativeAsset
ReactNativeAsset,
Sliceable
} from './types'
export {
FileInfo,
Expand Down
2 changes: 1 addition & 1 deletion packages/upload-client/src/tools/getStoreValue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StoreValue } from '../types'
import { StoreValue } from '@uploadcare/api-client-utils'

export function getStoreValue(store?: StoreValue): 'auto' | '0' | '1' {
if (typeof store === 'undefined' || store === 'auto') {
Expand Down
4 changes: 1 addition & 3 deletions packages/upload-client/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { CustomUserAgent } from '@uploadcare/api-client-utils'

export type StoreValue = 'auto' | boolean
import { CustomUserAgent, StoreValue } from '@uploadcare/api-client-utils'

export interface DefaultSettings {
baseCDN: string
Expand Down
8 changes: 6 additions & 2 deletions packages/upload-client/src/uploadFile/uploadDirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ import base from '../api/base'
import { isReadyPoll } from '../tools/isReadyPoll'
import { UploadcareFile } from '../tools/UploadcareFile'

import { CustomUserAgent, Metadata } from '@uploadcare/api-client-utils'
import {
CustomUserAgent,
Metadata,
StoreValue
} from '@uploadcare/api-client-utils'
import { ProgressCallback } from '../api/types'
import { StoreValue, SupportedFileInput } from '../types'
import { SupportedFileInput } from '../types'

export type DirectOptions = {
publicKey: string
Expand Down
3 changes: 2 additions & 1 deletion packages/upload-client/src/uploadFile/uploadFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import { getFileSize } from '../tools/getFileSize'
import { isFileData } from '../tools/isFileData'
import { isMultipart } from '../tools/isMultipart'
import { UploadcareFile } from '../tools/UploadcareFile'
import { StoreValue, SupportedFileInput } from '../types'
import { SupportedFileInput } from '../types'
import { isUrl, isUuid } from './types'
import { uploadMultipart } from './uploadMultipart'
import { StoreValue } from '@uploadcare/api-client-utils'

export type FileFromOptions = {
publicKey: string
Expand Down
8 changes: 6 additions & 2 deletions packages/upload-client/src/uploadFile/uploadMultipart.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { CustomUserAgent, Metadata } from '@uploadcare/api-client-utils'
import {
CustomUserAgent,
Metadata,
StoreValue
} from '@uploadcare/api-client-utils'
import multipartComplete from '../api/multipartComplete'
import multipartStart from '../api/multipartStart'
import multipartUpload, {
Expand All @@ -19,7 +23,7 @@ import {
import { getContentType } from '../tools/getContentType'
import { getFileName } from '../tools/getFileName'
import { getFileSize } from '../tools/getFileSize'
import { StoreValue, SupportedFileInput } from '../types'
import { SupportedFileInput } from '../types'

export type MultipartOptions = {
publicKey: string
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.typedoc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "**/*.test.ts"],
"exclude": ["node_modules", "**/*.test.ts", "**/test/_**"],
}

0 comments on commit c3f5c7f

Please sign in to comment.