mirror of
https://github.com/imezx/Warp.git
synced 2026-03-18 00:44:16 +00:00
chore(buffer): oops wrong type
This commit is contained in:
parent
1f9fe9dfd7
commit
ff6a0c5cf4
1 changed files with 1 additions and 1 deletions
|
|
@ -1146,7 +1146,7 @@ function Schema.struct(fields: { [string]: SchemaType }): SchemaType
|
||||||
return { type = "struct", fields = orderedFields }
|
return { type = "struct", fields = orderedFields }
|
||||||
end
|
end
|
||||||
|
|
||||||
function Schema.custom_datatype(name: string, object: { any }, writer: (w: Writer, v: any) -> (), reader: (b: buffer, c: number, refs: { Instance }?) -> (buffer, number))
|
function Schema.custom_datatype(name: string, object: { any }, writer: (w: Writer, v: any) -> (), reader: (b: buffer, c: number, refs: { Instance }?) -> (any, number))
|
||||||
if Schema[name] then
|
if Schema[name] then
|
||||||
warn(`[Warp.Schema]: this 'custom_datatype': "{name}" is already exists, try changing the name.`)
|
warn(`[Warp.Schema]: this 'custom_datatype': "{name}" is already exists, try changing the name.`)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue