|
17 | 17 | * limitations under the License. |
18 | 18 | */ |
19 | 19 | import type { CommandTypeMap } from '../../lib/command/types.ts'; |
20 | | -import type { Config as BaseApplicationConfig, Options as BaseApplicationOptions } from '../base-application/types.ts'; |
| 20 | +import type { |
| 21 | + Application as ClientApplication, |
| 22 | + Config as ClientConfig, |
| 23 | + Entity as ClientEntity, |
| 24 | + Field as ClientField, |
| 25 | + Options as ClientOptions, |
| 26 | + Relationship as ClientRelationship, |
| 27 | + Source as ClientSource, |
| 28 | +} from '../client/types.d.ts'; |
| 29 | +import type { |
| 30 | + Application as ServerApplication, |
| 31 | + Config as ServerConfig, |
| 32 | + Entity as ServerEntity, |
| 33 | + Field as ServerField, |
| 34 | + Options as ServerOptions, |
| 35 | + Relationship as ServerRelationship, |
| 36 | + Source as ServerSource, |
| 37 | +} from '../server/types.d.ts'; |
21 | 38 |
|
22 | 39 | import type command from './command.ts'; |
23 | 40 |
|
24 | 41 | type Command = CommandTypeMap<typeof command>; |
25 | 42 |
|
26 | | -export type Config = Command['Config'] & BaseApplicationConfig; |
| 43 | +export type Config = Command['Config'] & ClientConfig & ServerConfig; |
27 | 44 |
|
28 | | -export type Options = Command['Options'] & BaseApplicationOptions; |
| 45 | +export type Options = Command['Options'] & ClientOptions & ServerOptions; |
| 46 | + |
| 47 | +export type Source = ClientSource & ServerSource; |
| 48 | + |
| 49 | +export type Field = ClientField & ServerField; |
| 50 | + |
| 51 | +export interface Relationship extends ClientRelationship, ServerRelationship {} |
| 52 | + |
| 53 | +export type Entity<F extends Field = Field, R extends Relationship = Relationship> = ClientEntity<F, R> & ServerEntity<F, R>; |
| 54 | + |
| 55 | +export type Application = Command['Application'] & ClientApplication<Entity> & ServerApplication<Entity>; |
0 commit comments