Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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) {

```