@tuyau/core 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -220,8 +220,8 @@ var ApiTypesGenerator = class {
|
|
|
220
220
|
writer.writeLine(`export const api = {`).writeLine(` routes,`).writeLine(` definition: {} as ApiDefinition`).writeLine(`}`);
|
|
221
221
|
if (isTuyauInertiaInstalled) {
|
|
222
222
|
writer.writeLine(`declare module '@tuyau/inertia/types' {`);
|
|
223
|
-
writer.writeLine(` type
|
|
224
|
-
writer.writeLine(` export interface Api extends
|
|
223
|
+
writer.writeLine(` type InertiaApi = typeof api`);
|
|
224
|
+
writer.writeLine(` export interface Api extends InertiaApi {}`);
|
|
225
225
|
writer.writeLine(`}`);
|
|
226
226
|
}
|
|
227
227
|
});
|