mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚨 Always explicitely state member accessibility
This commit is contained in:
parent
7a73b8db91
commit
54cea29ce9
36 changed files with 227 additions and 196 deletions
|
|
@ -19,9 +19,9 @@ export class Plugin<ConfigSchema extends z.ZodTypeAny> {
|
|||
fn: (app: OpenAPIHono<HonoPluginEnv<ConfigSchema>>) => void;
|
||||
}[] = [];
|
||||
|
||||
constructor(private configSchema: ConfigSchema) {}
|
||||
public constructor(private configSchema: ConfigSchema) {}
|
||||
|
||||
get middleware() {
|
||||
public get middleware() {
|
||||
// Middleware that adds the plugin's configuration to the request object
|
||||
return createMiddleware<HonoPluginEnv<ConfigSchema>>(
|
||||
async (context, next) => {
|
||||
|
|
@ -70,7 +70,7 @@ export class Plugin<ConfigSchema extends z.ZodTypeAny> {
|
|||
this.handlers[hook] = handler;
|
||||
}
|
||||
|
||||
static [Symbol.hasInstance](instance: unknown): boolean {
|
||||
public static [Symbol.hasInstance](instance: unknown): boolean {
|
||||
return (
|
||||
typeof instance === "object" &&
|
||||
instance !== null &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue