How are you creating new documents? This should work:
const response = client.query<Document<User>>(fql`
User.create({
id: "1234",
ttl: Time.now().add(1, "day"),
name: "Paul",
email: "paul@me.com",
})
`)
I made comment in your other question that may be important here:
Also, if you want to be able to read the ttl
field, then you should add that to your type
type User = {
name: string;
email: string;
ttl: TimeStub;
};