Use import type whenever possible
This commit is contained in:
parent
04ce83b083
commit
a5ca1ee9f2
|
@ -1,4 +1,4 @@
|
||||||
import { TrackRequestParams } from "./types";
|
import type { TrackRequestParams } from "./types";
|
||||||
|
|
||||||
type AnalyticsBody = Record<string, unknown> & {
|
type AnalyticsBody = Record<string, unknown> & {
|
||||||
type: "event" | "request";
|
type: "event" | "request";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { MeiliDocument, SearchRequest, SearchResponse } from "./types";
|
import type { MeiliDocument, SearchRequest, SearchResponse } from "./types";
|
||||||
|
|
||||||
export class MeilisearchSDK {
|
export class MeilisearchSDK {
|
||||||
constructor(
|
constructor(
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { Collections } from "../payload/constants";
|
import type {
|
||||||
import {
|
|
||||||
EndpointCollectible,
|
EndpointCollectible,
|
||||||
EndpointPage,
|
EndpointPage,
|
||||||
EndpointFolder,
|
EndpointFolder,
|
||||||
|
@ -9,7 +8,8 @@ import {
|
||||||
EndpointFile,
|
EndpointFile,
|
||||||
EndpointRecorder,
|
EndpointRecorder,
|
||||||
EndpointChronologyEvent,
|
EndpointChronologyEvent,
|
||||||
} from "../payload/endpoint-types";
|
} from "payload/endpoint-types";
|
||||||
|
import { Collections } from "../payload/constants";
|
||||||
|
|
||||||
export type MeiliDocument = {
|
export type MeiliDocument = {
|
||||||
meilid: string;
|
meilid: string;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { RichTextContent } from "./rich-text";
|
import type { RichTextContent } from "./rich-text";
|
||||||
|
|
||||||
export interface TranscriptBlock extends GenericBlock {
|
export interface TranscriptBlock extends GenericBlock {
|
||||||
lines: (LineBlock | CueBlock)[];
|
lines: (LineBlock | CueBlock)[];
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,17 +1,17 @@
|
||||||
import { Collections } from "./constants";
|
|
||||||
import {
|
import {
|
||||||
EndpointAudioPreview,
|
type GenericBlock,
|
||||||
EndpointImagePreview,
|
type SectionBlock,
|
||||||
EndpointVideoPreview,
|
type TranscriptBlock,
|
||||||
} from "./endpoint-types";
|
type BreakBlock,
|
||||||
import {
|
|
||||||
GenericBlock,
|
|
||||||
SectionBlock,
|
|
||||||
TranscriptBlock,
|
|
||||||
BreakBlock,
|
|
||||||
isBlockTranscriptBlock,
|
isBlockTranscriptBlock,
|
||||||
isBlockBreakBlock,
|
isBlockBreakBlock,
|
||||||
} from "./blocks";
|
} from "./blocks";
|
||||||
|
import { Collections } from "./constants";
|
||||||
|
import type {
|
||||||
|
EndpointImagePreview,
|
||||||
|
EndpointVideoPreview,
|
||||||
|
EndpointAudioPreview,
|
||||||
|
} from "./endpoint-types";
|
||||||
|
|
||||||
export type RichTextContent = {
|
export type RichTextContent = {
|
||||||
root: {
|
root: {
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
import { Collections } from "./constants";
|
import { Collections } from "./constants";
|
||||||
import {
|
import type {
|
||||||
EndpointAllIds,
|
EndpointWebsiteConfig,
|
||||||
EndpointAllSDKUrls,
|
EndpointFolder,
|
||||||
EndpointAudio,
|
EndpointLanguage,
|
||||||
EndpointChronologyEvent,
|
EndpointCurrency,
|
||||||
|
EndpointWording,
|
||||||
|
EndpointPage,
|
||||||
EndpointCollectible,
|
EndpointCollectible,
|
||||||
|
EndpointCollectibleScans,
|
||||||
|
EndpointCollectibleScanPage,
|
||||||
EndpointCollectibleGallery,
|
EndpointCollectibleGallery,
|
||||||
EndpointCollectibleGalleryImage,
|
EndpointCollectibleGalleryImage,
|
||||||
EndpointCollectibleScanPage,
|
EndpointChronologyEvent,
|
||||||
EndpointCollectibleScans,
|
|
||||||
EndpointCurrency,
|
|
||||||
EndpointFile,
|
|
||||||
EndpointFolder,
|
|
||||||
EndpointImage,
|
EndpointImage,
|
||||||
EndpointLanguage,
|
EndpointAudio,
|
||||||
EndpointPage,
|
|
||||||
EndpointRecorder,
|
|
||||||
EndpointVideo,
|
EndpointVideo,
|
||||||
EndpointWebsiteConfig,
|
EndpointFile,
|
||||||
EndpointWording,
|
EndpointRecorder,
|
||||||
|
EndpointAllSDKUrls,
|
||||||
|
EndpointAllIds,
|
||||||
} from "./endpoint-types";
|
} from "./endpoint-types";
|
||||||
|
|
||||||
export const getSDKEndpoint = {
|
export const getSDKEndpoint = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Collections } from "./constants";
|
import type { Collections } from "./constants";
|
||||||
|
|
||||||
export type AfterOperationWebHookMessage = {
|
export type AfterOperationWebHookMessage = {
|
||||||
collection: Collections;
|
collection: Collections;
|
||||||
|
|
Loading…
Reference in New Issue