INNER CODE UNIT · TypeScript

omit

midwayjs/hooks · packages/bundler/src/index.ts:16

const omit = (key: string, { [key]: _, ...obj }) => obj

interface BundlerConfig {
  name: string
  router: AbstractRouter
}

export abstract class AbstractBundlerAdapter {
  constructor(private config: BundlerConfig) {}

  getName() {
    return this.config.name
  }

  abstract getSource(): string

  getRouter() {
    return this.config.router

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…