user_pill: Convert module to TypeScript.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-11-01 21:08:23 -07:00
committed by Anders Kaseorg
parent 8e2264b585
commit b8acfe08a4
3 changed files with 32 additions and 18 deletions

View File

@@ -26,7 +26,7 @@ var pills = input_pill.create({
});
```
You can look at `web/src/user_pill.js` to see how the above
You can look at `web/src/user_pill.ts` to see how the above
methods are implemented. Essentially you just need to convert
from raw data (like an email) to structured data (like an object
with display_value, email, and user_id for a user), and vice
@@ -46,7 +46,7 @@ source: function () {
},
```
And then in `user_pill.js`...
And then in `user_pill.ts`...
```js
export function typeahead_source(pill_widget) {