Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Conversation

@laktek
Copy link
Contributor

@laktek laktek commented Apr 14, 2024

What kind of change does this PR introduce?

This PR adds a type definition file which can be imported into edge functions to get Edge Runtime specific global types.

Then in an edge function these types can be added as:

/// <reference types="npm:https://esm.sh/@supabase/functions-js/src/edge-runtime.d.ts" />

@coveralls
Copy link

coveralls commented Apr 14, 2024

Pull Request Test Coverage Report for Build 8681653994

Details

  • 0 of 45 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-13.4%) to 78.797%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/edge-runtime.d.ts 0 45 0.0%
Totals Coverage Status
Change from base Build 8680872048: -13.4%
Covered Lines: 219
Relevant Lines: 277

💛 - Coveralls

Copy link
Contributor

@thorwebdev thorwebdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to add some typedoc annotations to explain the model parameters. Otherwise LGTM

@laktek laktek merged commit 26a23e0 into main Apr 14, 2024
@laktek laktek deleted the supabase-ai-types branch April 14, 2024 23:44
@github-actions
Copy link

🎉 This PR is included in version 2.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants