updated cobra.Command constructor and update structConstructor to use goja.Object.Set

This commit is contained in:
Gani Georgiev
2023-06-21 20:36:57 +03:00
parent fc311a8d28
commit 21607f0f66
4 changed files with 9713 additions and 6733 deletions
+8 -3
View File
@@ -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})
File diff suppressed because it is too large Load Diff