File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Plugin , PluginContext , IHttpServer } from '@objectstack/core' ;
2- import { IObjectStackProtocol } from '@objectstack/spec/api' ;
2+ import { ObjectStackProtocol } from '@objectstack/spec/api' ;
33import { HonoHttpServer } from './adapter' ;
44
55export interface HonoPluginOptions {
@@ -49,10 +49,10 @@ export class HonoServerPlugin implements Plugin {
4949 ctx . logger . debug ( 'Starting Hono server plugin' ) ;
5050
5151 // Get protocol implementation instance
52- let protocol : IObjectStackProtocol | null = null ;
52+ let protocol : ObjectStackProtocol | null = null ;
5353
5454 try {
55- protocol = ctx . getService < IObjectStackProtocol > ( 'protocol' ) ;
55+ protocol = ctx . getService < ObjectStackProtocol > ( 'protocol' ) ;
5656 ctx . logger . debug ( 'Protocol service found, registering protocol routes' ) ;
5757 } catch ( e ) {
5858 ctx . logger . warn ( 'Protocol service not found, skipping protocol routes' ) ;
Original file line number Diff line number Diff line change 77 IDataEngine
88} from '@objectstack/runtime' ;
99import { ObjectStackProtocolImplementation } from '@objectstack/objectql' ;
10- import { IObjectStackProtocol } from '@objectstack/spec/api' ;
10+ import { ObjectStackProtocol } from '@objectstack/spec/api' ;
1111// import { IDataEngine } from '@objectstack/core';
1212
1313export interface MSWPluginOptions {
@@ -36,10 +36,10 @@ export interface MSWPluginOptions {
3636 * ObjectStack Server Mock - Provides mock database functionality
3737 */
3838export class ObjectStackServer {
39- private static protocol : IObjectStackProtocol | null = null ;
39+ private static protocol : ObjectStackProtocol | null = null ;
4040 private static logger : any | null = null ;
4141
42- static init ( protocol : IObjectStackProtocol , logger ?: any ) {
42+ static init ( protocol : ObjectStackProtocol , logger ?: any ) {
4343 this . protocol = protocol ;
4444 this . logger = logger || {
4545 info : console . log ,
@@ -190,7 +190,7 @@ export class MSWPlugin implements Plugin {
190190 private options : MSWPluginOptions ;
191191 private worker : any ;
192192 private handlers : Array < any > = [ ] ;
193- private protocol ?: IObjectStackProtocol ;
193+ private protocol ?: ObjectStackProtocol ;
194194
195195 constructor ( options : MSWPluginOptions = { } ) {
196196 this . options = {
You can’t perform that action at this time.
0 commit comments