
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
npm install ts-expand
import * as _ from 'ts-expand'
interface Person {
name: string
age: number
sex: string
other: Symbol
}
const nameInfo: _.Filter<Person, 'name'> = {
name: 'hello world'
}
'_.' can find all types
import * as _ from 'ts-expand'
interface Person {
readonly name: string
age: number
sex?: string
other: Symbol
}
type SubPerson = _.TsSql(`select * from ? where key = ?`, Person)
// result:
/**
* SubPerson = {
* readonly name: string
age: number
sex?: string
other: Symbol
* }
*/
type SubPerson_1 = _.TsSql(`select * from ? where key = ?`, Person, 'name' | 'age')
// result:
/**
* SubPerson_1 = {
* readonly name: string
* age: number
* }
*/
type SubPerson_2 = _.TsSql(`select * from ? where key = ? and is_require`, Person)
// result:
/**
* SubPerson_2 = {
* readonly name: string
* age: number
* other: Symbol
* }
*/
type SubPerson_3 = _.TsSql(`select * from ? where key = ? and is_require and is_readonly`, Person)
// result:
/**
* SubPerson_3 = {
* readonly name: string
* }
*/
// TsSqlV2
type SubPerson = _.TsSqlV2(`
select
name, age
from
?
where
is_require
`, Test)
// result:
/**
* SubPerson_1 = {
* readonly name: string
* age: number
* }
*/
type SubPerson_all = _.TsSqlV2('select * from ?', Test)
FAQs
This is Typescript Type Like Loadash
We found that ts-expand demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.