Sebastien Guillemot

Results 170 issues of Sebastien Guillemot
trafficstars

`tslog` comes with some default log levels for `info`/`warn`/etc. The problem is that if you're using tslog with custom log severities, things like `log.info` may stop working and outputs nothing....

## 💡 Feature description Deno support was added by #1117. Currently, if you use `wasm-pack build --target deno`, it will generate the following files ``` project-name.wasm project-name.wasm.d.ts project-name.js project-name.d.ts ```...

### What problem does the new feature solve? [pglite](https://pglite.dev) is a (relatively) new tool that allows running postgres in WASM (which allows it to run in-memory, or in the browser)...

feature

`Buffer` is not a global type inherent to Typescript (comes from nodejs) so not all compiler options support it. Therefore, using pgtyped in those environments can lead to a compiler...

I'm running Deno 2 and I tried to do the following ```ts const levelMethods = { [log.levels.TRACE]: log.trace, [log.levels.DEBUG]: log.debug, [log.levels.INFO]: log.info, [log.levels.WARN]: log.warn, [log.levels.ERROR]: log.error, } as const; function...

Currently, this project relies on [JSON.parse](https://github.com/APIDevTools/json-schema-ref-parser/blob/da0fda28cbb67ce6f62d073576c6af3e53417b29/lib/parsers/json.ts#L43) to load JSON files. However, `JSON.parse` is lossy on numbers larger than `Number.MAX_SAFE_INTEGER` ex: ```ts console.log( JSON.parse(`${Number.MAX_SAFE_INTEGER + 2}`) ); ``` Correct output: `9007199254740993`...

# What works The given schema ```json { "$id": "recursive.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "label": { "anyOf": [ { "type": "integer" } ] }, "value": { "$ref": "#" } },...

## Motivation There are cases where you need to do the following steps: 1. Create a `Task` (using `run`) 2. Do some computation on the `Task` using `then` 3. `yield`...

In JS, it's common in a function that isn't `async` to chain promises together using `.then` and `.catch` However, it's not clear what the effection equivalent to this is (what...

In typescript, a very common pattern is to share a promise in multiple places. For example: ```typescript class Foo { data: Promise; constructor() { this.data = (async () => 5)();...