Basically I'm trying to implement a function that always returns a fulfilled promise of the same "type" i pass to the function as a parameter

So if I call with a boolean it returns a fulfilled Promise, if I call with a string parameter it returns a fulfilled Promise and so on..

what I tried so far: 

```
const PromiseOK = <T>(val: T): Promise<T> => {
    return Promise.resolve(val);
};

```

I don't know if it's the proper way to do it and in any case it breaks if i try to get a Promise< void >

Any suggestion will be appreciated