updated cobra.Command constructor and update structConstructor to use goja.Object.Set
This commit is contained in:
@@ -14,7 +14,7 @@ const heading = `
|
||||
// baseBinds
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
declare var $app: core.App
|
||||
declare var $app: pocketbase.PocketBase
|
||||
|
||||
interface Record extends models.Record{} // merge
|
||||
declare class Record implements models.Record {
|
||||
@@ -41,11 +41,16 @@ declare class SchemaField implements schema.SchemaField {
|
||||
constructor(data?: Partial<schema.SchemaField>)
|
||||
}
|
||||
|
||||
interface Mail extends mailer.Message{} // merge
|
||||
interface MailerMessage extends mailer.Message{} // merge
|
||||
declare class Mail implements mailer.Message {
|
||||
constructor(message?: Partial<mailer.Message>)
|
||||
}
|
||||
|
||||
interface Command extends cobra.Command{} // merge
|
||||
declare class Mail implements cobra.Command {
|
||||
constructor(cmd?: Partial<cobra.Command>)
|
||||
}
|
||||
|
||||
interface ValidationError extends ozzo_validation.Error{} // merge
|
||||
declare class ValidationError implements ozzo_validation.Error {
|
||||
constructor(code?: number, message?: string)
|
||||
@@ -270,7 +275,7 @@ func main() {
|
||||
"github.com/pocketbase/pocketbase/tokens": {"*"},
|
||||
"github.com/pocketbase/pocketbase/apis": {"*"},
|
||||
"github.com/pocketbase/pocketbase/forms": {"*"},
|
||||
"github.com/pocketbase/pocketbase/core": {"*"},
|
||||
"github.com/pocketbase/pocketbase": {"*"},
|
||||
},
|
||||
FieldNameFormatter: func(s string) string {
|
||||
return mapper.FieldName(nil, reflect.StructField{Name: s})
|
||||
|
||||
+9602
-6686
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user