zxc122333 / globalmerge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Directory structure

|-merge              the monorepo play Pixi.js
|   |- packages
|         |- core    pluggable package, like @pixi/display
|         |- plugin  plugin, like @pixi/accessibility
|-project            a project

The d.ts in project/node_modules/@merge/*/dist is wrote by hand, and the original generated by TSC live in the comments.

The problem is in the project/src/index.ts file.

import * as Plugin from '@merge/plugin';

Plugin.sayHelloToPlugin({foo: 'foo', bar: 'bar'})


// This should fail at compile time, but it pass
Merge.sayHelloToCore({foo: 'foo', bar: 'bar'})

About


Languages

Language:JavaScript 50.2%Language:TypeScript 49.8%