If `VOID` is used, TypeScript is not able to figure out what the function parameters are.
Before:
```
$ npx tsc | wc -l
1188
```
After:
```
$ npx tsc | wc -l
1169
```
46 lines
516 B
JavaScript
46 lines
516 B
JavaScript
/**
|
|
* @module ol/webgl/Shader
|
|
*/
|
|
|
|
/**
|
|
* @abstract
|
|
*/
|
|
class WebGLShader {
|
|
|
|
/**
|
|
* @param {string} source Source.
|
|
*/
|
|
constructor(source) {
|
|
|
|
/**
|
|
* @private
|
|
* @type {string}
|
|
*/
|
|
this.source_ = source;
|
|
|
|
}
|
|
|
|
/**
|
|
* @return {boolean} Is animated?
|
|
*/
|
|
isAnimated() {
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @abstract
|
|
* @return {number} Type.
|
|
*/
|
|
getType() {}
|
|
|
|
/**
|
|
* @return {string} Source.
|
|
*/
|
|
getSource() {
|
|
return this.source_;
|
|
}
|
|
}
|
|
|
|
|
|
export default WebGLShader;
|