Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

SerializableExport

tipo Since 1.1.0

Comprobación de tipos que falla cuando un export del código de nivel superior de servidor no se puede serializar en JSON. Shape es JsonShape<T>. El compilador la genera para cada export.

ts
import type { SerializableExport } from "@meekojs/meeko/framework";

Source code src/server/runtime/page-body.ts:82

Declaración #

ts
type SerializableExport<T extends Shape, Shape> = T

Type parameters #

T extends Shape

Tipo del export.

Shape

Su forma JSON, JsonShape<T>.

Example #

ts
import type { JsonShape, SerializableExport } from "@meekojs/meeko/framework";

type User = { id: string; joined: string };
type Checked = SerializableExport<User, JsonShape<User>>; // User
// SerializableExport<{ at: Date }, JsonShape<{ at: Date }>> no compila: Date es una clase.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/server/runtime/page-body.ts