James Ross

Results 48 issues of James Ross

### Summary No functional changes, just a few TS cleanups, updated editorconfig to better match repo now, and added formatting scripts. `astro check` currently reports: ``` Result (145 files): -...

size/s

### Summary This PR updates many components and files to use proper TypeScript syntax and types wherever possible. There are a few cases, namely with specific schemas that haven't been...

size/xl

### Existing documentation URL(s) https://developers.cloudflare.com/pages/framework-guides/deploy-a-hono-site/ ### What changes are you suggesting? ![](https://i.james.pub/file/2024/08/b86ab848-3fe3-471f-a028-5c54e16713da.png) This page is encouraging users to use Hono to serve assets. This is bad practice. It'll cause an...

documentation
product:pages
content:edit

Diff: https://npmdiff.dev/@cloudflare%2fworkers-types/4.20240821.1/4.20240903.0/package/experimental/index.ts Raw diff: https://github.com/Cloudflare-Mining/Cloudflare-Datamining/commit/66e958488df276e1d052cdb93e13b365e20fbd22#diff-498f7d22754cd92e5654b3be0adcae3df0c297abe440099d42dbc8cf43af66fd `FixedLengthStream` previously had named paramaters: ```ts declare class FixedLengthStream extends IdentityTransformStream { constructor( expectedLength: number | bigint, queuingStrategy?: IdentityTransformStreamQueuingStrategy, ); } ``` Now these are...

types

The latest versions of `workers-types` is now including image options: `export type InfoResponse` `export type OutputOptions` `export type Transform` https://github.com/Cloudflare-Mining/Cloudflare-Datamining/blob/38e659727fe7679e28731e5f2b7adf9ca8121dff/data/workers-types/2021-11-03/index.ts#L4748 etc. which are now available as globals when people load...

types

I copied the "traditional" example at https://developers.cloudflare.com/workers-ai/function-calling/ into a worker like this: ```typescript export default { async fetch(request, env, ctx): Promise { const response = await env.AI.run( "@hf/nousresearch/hermes-2-pro-mistral-7b", { messages:...

types

### Summary - Formats remaining files left over from previous formatting ones - Adds a "core" formatting check for JS/TS, etc. that's part of the docs site This also adds...

size/m
DevRel

Over the last year or so, there have been regular regressions or issues with workers-types that would have been caught with some testing and/or better vetting. workers-types is a huge...

types