diff --git a/pdfobject/pdfobject-tests.ts b/pdfobject/pdfobject-tests.ts
new file mode 100644
index 0000000000..db82802c52
--- /dev/null
+++ b/pdfobject/pdfobject-tests.ts
@@ -0,0 +1,25 @@
+///
+
+import * as PDFObject from "pdfobject";
+
+function test_embedding_with_url_only() {
+ var el:HTMLElement = PDFObject.embed("url");
+}
+
+function test_embedding_with_url_and_target() {
+ var el:HTMLElement = PDFObject.embed("url", ".css-selector");
+}
+
+function test_embedding_with_all_parameters() {
+ var el:HTMLElement = PDFObject.embed("url", ".css-selector", {
+ "height": "200px"
+ });
+}
+
+function test_pdf_object_version() {
+ var version:string = PDFObject.pdfobjectversion;
+}
+
+function test_supports_pdfs() {
+ var supportsPDFs:boolean = PDFObject.supportsPDFs;
+}
diff --git a/pdfobject/pdfobject.d.ts b/pdfobject/pdfobject.d.ts
new file mode 100644
index 0000000000..444bedc654
--- /dev/null
+++ b/pdfobject/pdfobject.d.ts
@@ -0,0 +1,16 @@
+// Type definitions for PDFObject v2.0.201604172
+// Project: https://github.com/pipwerks/PDFObject
+// Definitions by: Niels Boogaard
+// Definitions: https://github.com/borisyankov/DefinitelyTyped
+
+declare module "pdfobject" {
+ interface PDFObject {
+ embed(url:string, target?:any, options?:any): HTMLElement;
+ pdfobjectversion: string;
+ supportsPDFs: boolean;
+ }
+
+ var pdfObject: PDFObject;
+ export = pdfObject;
+
+}