Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

490 B
Raw Blame
import { Container, ServiceClassInstance } from "dioc"
import { KernelInterceptor } from "~/services/kernel-interceptor.service"

export type KernelInterceptorDef =
  | {
      type: "standalone"
      interceptor: KernelInterceptor
    }
  | {
      type: "service"
      service: ServiceClassInstance<unknown> & {
        new (container: Container): KernelInterceptor
      }
    }

export type KernelInterceptorsPlatformDef = {
  default: string
  interceptors: KernelInterceptorDef[]
}