0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/examples/middleware/src/env.d.ts
Emanuele Stoppa e9f0dd9b47
fix(middleware): emit warning if next is called and nothing is returned (#7010)
* fix(middleware): emit warning if `next` is called and nothing is returned

* chore: add test case

* chore: changeset

* chore: restore code, ooops!

* chore: change logic

* change namespace
2023-05-05 13:20:33 -04:00

9 lines
140 B
TypeScript

/// <reference types="astro/client" />
declare namespace App {
interface Locals {
user: {
name: string;
surname: string;
};
}
}