Skip to content

Commit

Permalink
fix: remove dependency ts2php
Browse files Browse the repository at this point in the history
  • Loading branch information
harttle committed Feb 20, 2020
1 parent df73d47 commit f930199
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 603 deletions.
153 changes: 0 additions & 153 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"lodash": "^4.17.15",
"snake-case": "^2.1.0",
"ts-morph": "^4.0.1",
"ts2php": "^0.14.0",
"typescript": "^3.4.5",
"yargs": "^14.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export { SanProject } from './models/san-project'
export { Compiler } from './models/compiler'
export { ComponentInfo } from './models/component-info'
export { ComponentTree } from './models/component-tree'
export { SanSSRFiltersDeclarations, SanSSRComputedDeclarations, isComponentLoader, COMPONENT_RESERVED_MEMBERS } from './models/component'
export { isComponentLoader, COMPONENT_RESERVED_MEMBERS } from './models/component'
export { CompiledComponent } from './models/compiled-component'

/**
Expand Down
11 changes: 3 additions & 8 deletions src/models/component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { PHPClass } from 'ts2php'
import { SanData as OriginSanData, SanComponent, ComponentConstructor } from 'san'
import { SanComponent, ComponentConstructor } from 'san'
import { CompiledComponent } from './compiled-component'
import { SanData } from './san-data'

export interface Computed {
[k: string]: (this: { data: Partial<SanData> }) => any
[k: string]: (this: { data: SanData }) => any
}

export interface Filters {
Expand Down Expand Up @@ -31,11 +31,6 @@ export function isComponentClass (clazz: any): clazz is typeof SanComponent {
(typeof clazz.template === 'string' || typeof clazz.prototype.template === 'string')
}

interface SanData extends OriginSanData<{}>, PHPClass {
get (path?: string): any
set (path: string, value: any): any
}

export class SanSSRFiltersDeclarations {
[key: string]: (...args: any[]) => any
}
Expand Down
4 changes: 0 additions & 4 deletions src/types/README.md

This file was deleted.

0 comments on commit f930199

Please sign in to comment.