3.0.0 • Published 6 months ago

@flect/traverse v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Introduction

Flect/traverse is a library for building traversals for Flect types.

Usage

const Animal = record({
	legCount: numberType,
	sound: stringType
});
type Animal = Reify<typeof Animal>;

const getSound = traverseRecord(Animal, "sound");
const myDog = {legCount: 4, sound: "woof"};
console.log(getSound(myDog)); // Goes 'woof'
3.0.0

6 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.1.0

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago