A
A
Alexey Yakovlev2020-11-02 21:08:06
typescript
Alexey Yakovlev, 2020-11-02 21:08:06

Error creating method on typescript array?

Error: Property 'showOne' does not exist on type 'any[]'
Code:

Array.prototype.showOne = function(content_body: any[], hidden_class: string, html_img: any[] = undefined, html_img_class: string = undefined): void {};

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-11-02
@aleshaykovlev

https://stackoverflow.com/questions/12802383/exten...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question