How to save type of an object

  Kiến thức lập trình

I have backend and frontend projects. I want to copy backend types to frontend.

On backend I have

const app = SomeFunctionThatGeneratesSomething();
export type App = typeof app;

I want to save App to file and use on frontend

import {App} from "savedBackendApp"

LEAVE A COMMENT