S
S
sirinotapple2022-02-01 23:11:40
typescript
sirinotapple, 2022-02-01 23:11:40

Data type of defined numbers?

Hello, webpack has a
webpack.Compilation object with fields in the form

Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL = -2000;
Compilation.PROCESS_ASSETS_STAGE_PRE_PROCESS = -1000;
Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE = 400;

I want to create a data type that is number but which allows you to enter a number only that which is the value of one of the Compilation fields, how to implement this in index.d.ts

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question