Yui
Yui
DDeno
Created by Yui on 9/18/2024 in #help
Decorators are not valid here.deno-ts(1206)
I just updated deno after like a year maybe and now I am seeing this. Do I need to turn on some config option or something to use decorators? Thanks
import { Column, DataType, InferAttributes, InferCreationAttributes, Model, Table } from "../../deps.ts";

@Table
export class CommandVersion extends Model<
InferAttributes<CommandVersion>,
InferCreationAttributes<CommandVersion>
> {
@Column({
type: DataType.BIGINT,
primaryKey: true,
})
declare id: bigint;
@Column(DataType.INTEGER)
declare version: number;
}
import { Column, DataType, InferAttributes, InferCreationAttributes, Model, Table } from "../../deps.ts";

@Table
export class CommandVersion extends Model<
InferAttributes<CommandVersion>,
InferCreationAttributes<CommandVersion>
> {
@Column({
type: DataType.BIGINT,
primaryKey: true,
})
declare id: bigint;
@Column(DataType.INTEGER)
declare version: number;
}
2 replies
DDeno
Created by Yui on 6/29/2023 in #help
deno autocomplete importing npm module from file
3 replies
DDeno
Created by Yui on 5/8/2023 in #help
npm package, need to use deno websocket if running in deno
Anyone has any idea how to use native deno websocket with my npm package? Detecting deno is not a problem. (normal websocket from npm is broken in deno.)
1 replies
DDeno
Created by Yui on 5/3/2023 in #help
weird error with npm import
2 replies
DDeno
Created by Yui on 1/29/2023 in #help
Any way to catch error coming from inside npm compat?
6 replies
DDeno
Created by Yui on 1/29/2023 in #help
Override npm import dep with import maps?
Is it possible for me change a depedency of an npm package by using import maps? Say I want to use a different websocket than the base npm package is using.
12 replies
DDeno
Created by Yui on 1/15/2023 in #help
module augmentation
9 replies
DDeno
Created by Yui on 1/9/2023 in #help
module registry alternatives then deno.land
Anyone knows some other registries besides deno.land/x . I already know about nest.land. Looking for something which does not need a github repo.
3 replies
DDeno
Created by Yui on 12/27/2022 in #help
fetch - change user agent
Anyway to change user agent and other fetch parameters. There is one api I have not called in like 2 months, but it still shows up as ratelimited(cloudflare btw). However I can access it via insomnia or my web browser just fine so I am assuming deno headers are the problem
2 replies
DDeno
Created by Yui on 11/12/2022 in #help
Multi arch docker image based on alpine
Is there any multi arch docker image for deno which includes arm? Preferably built on alpine.
1 replies
DDeno
Created by Yui on 10/4/2022 in #help
upload files formdata
How can I upload files with multipart/form-data using fetch?
26 replies