Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ertrzyiks/pixi-viewport-type-export-example
Example of using a type defined in pixi-viewport library.
https://github.com/ertrzyiks/pixi-viewport-type-export-example
Last synced: about 1 month ago
JSON representation
Example of using a type defined in pixi-viewport library.
- Host: GitHub
- URL: https://github.com/ertrzyiks/pixi-viewport-type-export-example
- Owner: ertrzyiks
- License: mit
- Created: 2018-08-31T19:30:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-31T19:36:24.000Z (over 6 years ago)
- Last Synced: 2024-12-07T19:36:04.522Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://github.com/davidfig/pixi-viewport/issues/78
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pixi-viewport-type-export-example
Example of using a type defined in pixi-viewport library.
index.ts
```
import 'pixi.js'
import * as Viewport from 'pixi-viewport'class MyViewport extends Viewport {
constructor(options?: Viewport.ViewportOptions) {
super(options)
}
}
```## How to run
```
npm install
npm run build
```the output:
```
index.ts:5:34 - error TS2694: Namespace 'Viewport' has no exported member 'ViewportOptions'.5 constructor(options?: Viewport.ViewportOptions) {
```