Skip to content

Commit

Permalink
export correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 committed May 1, 2024
1 parent 6dc6cd5 commit 17640c9
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/ComponentProvider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable security/detect-object-injection */
import type { AsyncAPIDocumentInterface } from '@asyncapi/parser'
import { OptimizableComponentGroup, OptimizableComponent } from 'index.d'
import { OptimizableComponentGroup, OptimizableComponent } from 'types'

import { JSONPath } from 'jsonpath-plus'
import _ from 'lodash'
Expand Down
2 changes: 1 addition & 1 deletion src/Optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Options,
OptimizableComponentGroup,
Reporter,
} from './index.d'
} from './types'
import { Parser } from '@asyncapi/parser'
import {
removeComponents,
Expand Down
2 changes: 1 addition & 1 deletion src/Reporters/RemoveComponents.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Action } from '../Optimizer'
import { OptimizableComponentGroup, ReportElement, Reporter } from '../index.d'
import { OptimizableComponentGroup, ReportElement, Reporter } from '../types'
import { createReport, isInComponents } from '../Utils'
import Debug from 'debug'
const debug = Debug('reporter:removeComponents')
Expand Down
2 changes: 1 addition & 1 deletion src/Reporters/ReuseComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
OptimizableComponentGroup,
ReportElement,
Reporter,
} from '../index.d'
} from '../types'
import { createReport, isEqual, isInChannels, isInComponents } from '../Utils'
import Debug from 'debug'
const debug = Debug('reporter:reuseComponents')
Expand Down
2 changes: 1 addition & 1 deletion src/Reporters/moveAllToComponents.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Action } from '../Optimizer'
import { createReport, isEqual, isInComponents, getComponentName } from '../Utils'
import { OptimizableComponent, OptimizableComponentGroup, ReportElement, Reporter } from 'index.d'
import { OptimizableComponent, OptimizableComponentGroup, ReportElement, Reporter } from 'types'
import Debug from 'debug'
const debug = Debug('reporter:moveAllToComponents')
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Reporters/moveDuplicatesToComponents.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Action } from '../Optimizer'
import { createReport, isEqual, isInComponents, getComponentName } from '../Utils'
import { OptimizableComponent, OptimizableComponentGroup, ReportElement, Reporter } from 'index.d'
import { OptimizableComponent, OptimizableComponentGroup, ReportElement, Reporter } from 'types'
import Debug from 'debug'
const debug = Debug('reporter:moveDuplicatesToComponents')
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as _ from 'lodash'
import YAML from 'js-yaml'
import { OptimizableComponentGroup, NewReport, ReportElement, OptimizableComponent } from 'index.d'
import { OptimizableComponentGroup, NewReport, ReportElement, OptimizableComponent } from 'types'

/**
* Checks if a component's parent is a ref or not.
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { Optimizer, Output } from './Optimizer'
export type { Report, ReportElement, Options } from './index.d'
export type { Report, ReportElement, Options } from './types'
2 changes: 1 addition & 1 deletion src/index.d.ts → src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Action, Output } from 'Optimizer'
import type { Action, Output } from './Optimizer'

export interface ReportElement {
path: string
Expand Down

0 comments on commit 17640c9

Please sign in to comment.