expo-print width and height type error

Please provide the following:

  1. SDK Version: “~40.0.0”
  2. Platforms(Android/iOS/web/all): iOS

When add width and height types into printAsync:
“Argument of type ‘{ html: any; width: number; height: number; orientation: string; }’ is not assignable to parameter of type ‘PrintOptions’.
Object literal may only specify known properties, and ‘width’ does not exist in type ‘PrintOptions’.ts(2345)”
and the PrintOptions file doesn’t have the properties listed in expo-print documentation

Hey @paularistau, thanks for bringing this to our attention. We’ve updated the types for SDK42 but haven’t updated prior SDK versions yet.

We’d welcome a PR if you have the time and feel up to it. You could also extend the PrintOptions interface and add height and weight locally as a workaround.