mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-23 06:10:02 +08:00
- Preserve class identity and member storage through interface and intersection refinements. - Replace TypeScript runtime enum imports with pinned native constants and name lookups. - Use concrete type predicates in the native semantic client.
10 lines
286 B
JavaScript
10 lines
286 B
JavaScript
/** @param {number} [first] @param {number} [second] */
|
|
export function inspect(first, second) {
|
|
console.log(first, second);
|
|
}
|
|
|
|
/** @param {number} [first] @param {number} [second] */
|
|
export const choose = function (first, second) {
|
|
return second === undefined ? first : second;
|
|
};
|